Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 110.6 kB / 16.41 MB, free: 6.48 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.001483/0.001483, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2145/0.2145, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 68.28 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1145, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01417/0.1287, allocations: 11.65 MB / 0.4993 GB, free: 104 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008303/0.137, allocations: 3.949 MB / 0.5031 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002005/0.1391, allocations: 63.69 kB / 0.5032 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002866/0.142, allocations: 0.92 MB / 0.5041 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004247/0.1463, allocations: 0.9942 MB / 0.505 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.1485, allocations: 0.5188 MB / 0.5055 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005438/0.1539, allocations: 3.337 MB / 0.5088 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005352/0.1593, allocations: 2.985 MB / 0.5117 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002979/0.1623, allocations: 1.554 MB / 0.5132 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004239/0.1666, allocations: 2.008 MB / 0.5152 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001537/0.1681, allocations: 428 kB / 0.5156 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002242/0.1704, allocations: 0.5272 MB / 0.5161 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002133/0.1725, allocations: 1.227 MB / 0.5173 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004086/0.1766, allocations: 1.894 MB / 0.5192 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008384/0.185, allocations: 5.576 MB / 0.5246 GB, free: 5.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1851, allocations: 0 / 0.5246 GB, free: 5.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1851, allocations: 3.938 kB / 0.5246 GB, free: 5.977 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002129/0.1853, allocations: 0 / 0.5246 GB, free: 5.977 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01171/0.197, allocations: 3.821 MB / 0.5283 GB, free: 2.086 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1971, allocations: 15.89 kB / 0.5284 GB, free: 2.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.1984, allocations: 392.5 kB / 0.5287 GB, free: 1.684 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2666/0.4649, allocations: 1.954 MB / 0.5306 GB, free: 36.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/0.4652, allocations: 218.7 kB / 0.5309 GB, free: 36.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009306/0.4661, allocations: 285.3 kB / 0.5311 GB, free: 36.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006928/0.4731, allocations: 3.727 MB / 0.5348 GB, free: 36.47 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-05/0.4732, allocations: 10.25 kB / 0.5348 GB, free: 36.47 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002424/0.4734, allocations: 113 kB / 0.5349 GB, free: 36.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001739/0.4736, allocations: 141.9 kB / 0.535 GB, free: 36.37 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005473/0.4791, allocations: 3.164 MB / 0.5381 GB, free: 35.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02125/0.5003, allocations: 11.44 MB / 0.5493 GB, free: 29.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003919/0.5043, allocations: 2.164 MB / 0.5514 GB, free: 28.3 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002208/0.5066, allocations: 1.229 MB / 0.5526 GB, free: 27.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003114/0.5069, allocations: 215.1 kB / 0.5528 GB, free: 27.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.5069, allocations: 49.66 kB / 0.5529 GB, free: 27.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=139): time 3.637e-06/0.507, allocations: 3.625 kB / 0.5529 GB, free: 27.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01687/0.5238, allocations: 8.2 MB / 0.5609 GB, free: 22.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.5239, allocations: 68.56 kB / 0.5609 GB, free: 22.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002691/0.5266, allocations: 1.938 MB / 0.5628 GB, free: 21.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.754e-05/0.5267, allocations: 52.39 kB / 0.5629 GB, free: 21.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000761/0.5275, allocations: 1.362 MB / 0.5642 GB, free: 20.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000316/0.5278, allocations: 0.5162 MB / 0.5647 GB, free: 20.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004948/0.5283, allocations: 319.2 kB / 0.565 GB, free: 19.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.525e-05/0.5284, allocations: 305.1 kB / 0.5653 GB, free: 19.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.5296, allocations: 0.8853 MB / 0.5662 GB, free: 18.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.5308, allocations: 1.341 MB / 0.5675 GB, free: 17.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.5332, allocations: 2.392 MB / 0.5698 GB, free: 14.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.5332, allocations: 4 kB / 0.5698 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003777/0.537, allocations: 2.934 MB / 0.5727 GB, free: 11.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.537, allocations: 14.59 kB / 0.5727 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.5371, allocations: 16 kB / 0.5727 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.5378, allocations: 387.6 kB / 0.5731 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.5393, allocations: 439.3 kB / 0.5735 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004377/0.5437, allocations: 6.77 MB / 0.5801 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.5454, allocations: 123.8 kB / 0.5802 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.5456, allocations: 79.56 kB / 0.5803 GB, free: 3.551 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001587/0.5472, allocations: 0.9107 MB / 0.5812 GB, free: 2.629 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/0.5476, allocations: 201.5 kB / 0.5814 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004322/0.5519, allocations: 2.912 MB / 0.5842 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.728e-05/0.5519, allocations: 16 kB / 0.5842 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.552, allocations: 8 kB / 0.5843 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.856e-05/0.552, allocations: 11.97 kB / 0.5843 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.5635, allocations: 6.14 MB / 0.5903 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.5635, allocations: 4 kB / 0.5903 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5646, allocations: 235.6 kB / 0.5905 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00215/0.5667, allocations: 0.8156 MB / 0.5913 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.5669, allocations: 35.98 kB / 0.5913 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/0.5801, allocations: 10.75 MB / 0.6018 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.5801, allocations: 8.062 kB / 0.6018 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007101/0.5872, allocations: 4.175 MB / 0.6059 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.5887, allocations: 490.4 kB / 0.6064 GB, free: 8.211 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002505/0.589, allocations: 32.28 kB / 0.6064 GB, free: 8.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.59, allocations: 99.88 kB / 0.6065 GB, free: 8.082 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.5904, allocations: 125 kB / 0.6066 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.5905, allocations: 47.98 kB / 0.6067 GB, free: 7.914 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002107/0.5926, allocations: 1.336 MB / 0.608 GB, free: 6.555 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.5926, allocations: 0 / 0.608 GB, free: 6.555 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002223/0.5948, allocations: 0.5765 MB / 0.6085 GB, free: 5.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004753/0.5953, allocations: 193.3 kB / 0.6087 GB, free: 5.781 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004475/0.5998, allocations: 2.646 MB / 0.6113 GB, free: 3.082 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.5998, allocations: 0 / 0.6113 GB, free: 3.082 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002431/0.6023, allocations: 1.645 MB / 0.6129 GB, free: 1.402 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.6047, allocations: 0.5368 MB / 0.6134 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009903/0.6147, allocations: 5.749 MB / 0.619 GB, free: 11.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002085/0.6168, allocations: 2.217 MB / 0.6212 GB, free: 8.801 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001493/0.6183, allocations: 461.7 kB / 0.6217 GB, free: 8.348 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/0.6187, allocations: 155.4 kB / 0.6218 GB, free: 8.195 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6187, allocations: 0 / 0.6218 GB, free: 8.195 MB / 462.1 MB Notification: Performance of Templates: time 0.06301/0.6818, allocations: 33.36 MB / 0.6544 GB, free: 6.863 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches