Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 111.6 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 198.8 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009124/0.0009124, allocations: 43.92 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2326, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03067/0.2633, allocations: 30.34 MB / 431.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.2804, allocations: 8.647 MB / 439.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004989/0.2854, allocations: 183.5 kB / 439.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01164/0.297, allocations: 4.902 MB / 444.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009367/0.3064, allocations: 2.962 MB / 447.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004853/0.3113, allocations: 1.61 MB / 449.4 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.3231, allocations: 8.724 MB / 458.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.018/0.3412, allocations: 12.85 MB / 471 MB, free: 2.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005741/0.3469, allocations: 4.234 MB / 475.2 MB, free: 14.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00668/0.3536, allocations: 4.737 MB / 479.9 MB, free: 9.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002092/0.3558, allocations: 1.164 MB / 481.1 MB, free: 8.176 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003212/0.359, allocations: 1.519 MB / 482.6 MB, free: 6.656 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001853/0.3608, allocations: 2.416 MB / 485 MB, free: 4.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00522/0.3661, allocations: 4.669 MB / 489.7 MB, free: 15.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0146/0.3807, allocations: 15.8 MB / 0.4937 GB, free: 15.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3807, allocations: 0 / 0.4937 GB, free: 15.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3807, allocations: 4 kB / 0.4937 GB, free: 15.7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003087/0.381, allocations: 0 / 0.4937 GB, free: 15.7 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02585/0.4069, allocations: 9.747 MB / 0.5032 GB, free: 5.852 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.407, allocations: 12.03 kB / 0.5032 GB, free: 5.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0275/0.4345, allocations: 5.27 MB / 0.5083 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01103/0.4455, allocations: 5.096 MB / 0.5133 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004061/0.446, allocations: 0.5337 MB / 0.5138 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002332/0.4483, allocations: 0.703 MB / 0.5145 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02025/0.4686, allocations: 11.33 MB / 0.5256 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001773/0.4688, allocations: 15.91 kB / 0.5256 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007544/0.4695, allocations: 296 kB / 0.5259 GB, free: 14.42 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003819/0.4699, allocations: 446.9 kB / 0.5263 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/0.4878, allocations: 10.83 MB / 0.5369 GB, free: 3.141 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2403/0.7281, allocations: 37.57 MB / 0.5736 GB, free: 96.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01305/0.7412, allocations: 28.1 MB / 0.601 GB, free: 68.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003501/0.7447, allocations: 2.663 MB / 0.6036 GB, free: 65.49 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.011/0.7557, allocations: 7.893 MB / 0.6113 GB, free: 57.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.7558, allocations: 68.47 kB / 0.6114 GB, free: 57.51 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 3.998e-06/0.7558, allocations: 0 / 0.6114 GB, free: 57.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01654/0.7724, allocations: 10.35 MB / 0.6215 GB, free: 47.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001518/0.7739, allocations: 2.014 MB / 0.6235 GB, free: 44.96 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005049/0.779, allocations: 3.818 MB / 0.6272 GB, free: 41.17 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002094/0.7792, allocations: 65.7 kB / 0.6273 GB, free: 41.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/0.7807, allocations: 3.55 MB / 0.6307 GB, free: 37.53 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005533/0.7812, allocations: 0.8272 MB / 0.6315 GB, free: 36.71 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.7825, allocations: 0.949 MB / 0.6325 GB, free: 35.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.347e-05/0.7825, allocations: 309 kB / 0.6328 GB, free: 35.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002346/0.7849, allocations: 1.895 MB / 0.6346 GB, free: 33.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003138/0.788, allocations: 4.389 MB / 0.6389 GB, free: 27.92 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005719/0.7937, allocations: 6.791 MB / 0.6455 GB, free: 19.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.61e-05/0.7938, allocations: 28 kB / 0.6456 GB, free: 19.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009035/0.8029, allocations: 6.975 MB / 0.6524 GB, free: 12.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.8029, allocations: 44 kB / 0.6524 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.831e-05/0.803, allocations: 87.94 kB / 0.6525 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.8047, allocations: 0.7433 MB / 0.6532 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/0.8078, allocations: 1.115 MB / 0.6543 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/0.8135, allocations: 5.645 MB / 0.6598 GB, free: 5.117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003534/0.817, allocations: 311.1 kB / 0.6601 GB, free: 4.812 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003358/0.8174, allocations: 276 kB / 0.6604 GB, free: 4.543 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003128/0.8205, allocations: 2.522 MB / 0.6628 GB, free: 2.008 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007028/0.8212, allocations: 387.3 kB / 0.6632 GB, free: 1.625 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006917/0.8282, allocations: 4.268 MB / 0.6674 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/0.8282, allocations: 24 kB / 0.6674 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.8282, allocations: 8 kB / 0.6674 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/0.8283, allocations: 15.89 kB / 0.6674 GB, free: 13.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02328/0.8515, allocations: 14.28 MB / 0.6814 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/0.8516, allocations: 12 kB / 0.6814 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/0.8535, allocations: 483.2 kB / 0.6819 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/0.8555, allocations: 0.6932 MB / 0.6825 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/0.8557, allocations: 67.98 kB / 0.6826 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008977/0.8647, allocations: 7.483 MB / 0.6899 GB, free: 5.793 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001703/0.8664, allocations: 1.968 MB / 0.6918 GB, free: 3.672 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009849/0.8763, allocations: 6.745 MB / 0.6984 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002088/0.8784, allocations: 0.7929 MB / 0.6992 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008374/0.8792, allocations: 67.92 kB / 0.6992 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.8812, allocations: 163.8 kB / 0.6994 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/0.8816, allocations: 225.3 kB / 0.6996 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/0.8818, allocations: 95.97 kB / 0.6997 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004159/0.886, allocations: 2.506 MB / 0.7022 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.886, allocations: 0 / 0.7022 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004632/0.8906, allocations: 1.292 MB / 0.7034 GB, free: 7.52 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005043/0.8911, allocations: 227.7 kB / 0.7036 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007734/0.8989, allocations: 5.162 MB / 0.7087 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.8989, allocations: 0 / 0.7087 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003612/0.9025, allocations: 2.407 MB / 0.711 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004296/0.9068, allocations: 0.9917 MB / 0.712 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/0.9268, allocations: 12.3 MB / 0.724 GB, free: 2.184 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005946/0.9328, allocations: 4.5 MB / 0.7284 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004179/0.937, allocations: 1.364 MB / 0.7297 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008909/0.9379, allocations: 299.4 kB / 0.73 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/0.9379, allocations: 3.938 kB / 0.73 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of Templates: time 0.2743/1.212, allocations: 53.32 MB / 0.7821 GB, free: 160.3 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches