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.0008623/0.0008626, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009833/0.0009838, allocations: 177.7 kB / 16.92 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.059/2.059, allocations: 205.4 MB / 223.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4984/0.4984, allocations: 43.57 MB / 315 MB, free: 8.73 MB / 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.0005888/0.0005888, allocations: 23.98 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1492, allocations: 58.86 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01203/0.1613, allocations: 10.95 MB / 454.4 MB, free: 1.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2876/0.449, allocations: 3.865 MB / 458.2 MB, free: 37.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.451, allocations: 57.97 kB / 458.3 MB, free: 37.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002161/0.4532, allocations: 0.7579 MB / 459.1 MB, free: 37.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.4563, allocations: 0.8499 MB / 459.9 MB, free: 37.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.4576, allocations: 463.1 kB / 460.4 MB, free: 37.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004179/0.4618, allocations: 3.644 MB / 464 MB, free: 36.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002789/0.4646, allocations: 2.501 MB / 466.5 MB, free: 35.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.4668, allocations: 1.141 MB / 467.7 MB, free: 35.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002365/0.4692, allocations: 1.659 MB / 469.3 MB, free: 35.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004374/0.4697, allocations: 171.2 kB / 469.5 MB, free: 35.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.4707, allocations: 296 kB / 469.8 MB, free: 35.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009151/0.4716, allocations: 0.9112 MB / 470.7 MB, free: 35.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.4735, allocations: 1.569 MB / 472.2 MB, free: 34.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004952/0.4785, allocations: 5.191 MB / 477.4 MB, free: 33.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/0.4785, allocations: 0 / 477.4 MB, free: 33.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4785, allocations: 0 / 477.4 MB, free: 33.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002116/0.4788, allocations: 0 / 477.4 MB, free: 33.02 MB / 382.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.008383/0.4871, allocations: 3.203 MB / 480.6 MB, free: 31.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4872, allocations: 10.03 kB / 480.7 MB, free: 31.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.4891, allocations: 397.5 kB / 481 MB, free: 31.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004812/0.4939, allocations: 1.935 MB / 483 MB, free: 30.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002807/0.4943, allocations: 225 kB / 483.2 MB, free: 29.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009019/0.4952, allocations: 288.7 kB / 483.5 MB, free: 29.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009477/0.5047, allocations: 3.732 MB / 487.2 MB, free: 28.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/0.5048, allocations: 12.45 kB / 487.2 MB, free: 28.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003652/0.5052, allocations: 116.7 kB / 487.3 MB, free: 28.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003416/0.5056, allocations: 142.2 kB / 487.5 MB, free: 28.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008983/0.5146, allocations: 3.175 MB / 490.6 MB, free: 27.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02486/0.5395, allocations: 11.62 MB / 0.4905 GB, free: 20.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003731/0.5432, allocations: 2.19 MB / 0.4926 GB, free: 19.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002282/0.5456, allocations: 1.24 MB / 0.4938 GB, free: 18.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003207/0.5459, allocations: 208.3 kB / 0.494 GB, free: 18.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.251e-05/0.546, allocations: 50.5 kB / 0.4941 GB, free: 18.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.166e-06/0.546, allocations: 0 / 0.4941 GB, free: 18.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02007/0.566, allocations: 8.266 MB / 0.5022 GB, free: 13.85 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.5661, allocations: 68.03 kB / 0.5022 GB, free: 13.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003426/0.5695, allocations: 1.942 MB / 0.5041 GB, free: 12.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002782/0.5698, allocations: 50.98 kB / 0.5042 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008964/0.5707, allocations: 1.356 MB / 0.5055 GB, free: 11.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004387/0.5712, allocations: 0.5242 MB / 0.506 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.5714, allocations: 141.9 kB / 0.5061 GB, free: 10.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.814e-05/0.5715, allocations: 307.7 kB / 0.5064 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.573, allocations: 0.8798 MB / 0.5073 GB, free: 10.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/0.5749, allocations: 1.352 MB / 0.5086 GB, free: 8.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.5782, allocations: 2.389 MB / 0.511 GB, free: 6.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.5782, allocations: 7.938 kB / 0.511 GB, free: 6.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005918/0.5841, allocations: 2.937 MB / 0.5138 GB, free: 3.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.215e-05/0.5842, allocations: 12 kB / 0.5138 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.5842, allocations: 12 kB / 0.5139 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009437/0.5852, allocations: 394.5 kB / 0.5142 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.5867, allocations: 455.2 kB / 0.5147 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007102/0.5938, allocations: 6.211 MB / 0.5207 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00256/0.5965, allocations: 131.7 kB / 0.5209 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003137/0.5968, allocations: 71.98 kB / 0.5209 GB, free: 11.65 MB / 398.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.00253/0.5993, allocations: 0.905 MB / 0.5218 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007745/0.6001, allocations: 205.5 kB / 0.522 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00568/0.6058, allocations: 2.914 MB / 0.5248 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/0.6058, allocations: 12 kB / 0.5249 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.6059, allocations: 8 kB / 0.5249 GB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/0.6059, allocations: 7.969 kB / 0.5249 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.6185, allocations: 6.168 MB / 0.5309 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.6186, allocations: 4 kB / 0.5309 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.6196, allocations: 248.1 kB / 0.5311 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002237/0.6219, allocations: 0.8051 MB / 0.5319 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.622, allocations: 39.98 kB / 0.532 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/0.6339, allocations: 9.852 MB / 0.5416 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.634, allocations: 7.938 kB / 0.5416 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007349/0.6413, allocations: 4.199 MB / 0.5457 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/0.6429, allocations: 494.3 kB / 0.5462 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004244/0.6433, allocations: 39.94 kB / 0.5462 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.6445, allocations: 99.81 kB / 0.5463 GB, free: 1.023 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/0.6448, allocations: 125.1 kB / 0.5464 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.645, allocations: 51.92 kB / 0.5465 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002354/0.6473, allocations: 1.34 MB / 0.5478 GB, free: 15.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6473, allocations: 0 / 0.5478 GB, free: 15.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002879/0.6502, allocations: 0.5703 MB / 0.5483 GB, free: 14.92 MB / 430.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.0005264/0.6508, allocations: 202 kB / 0.5485 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004962/0.6557, allocations: 2.631 MB / 0.5511 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.6558, allocations: 8.062 kB / 0.5511 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/0.6586, allocations: 1.638 MB / 0.5527 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005034/0.6636, allocations: 0.4987 MB / 0.5532 GB, free: 9.848 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.6774, allocations: 7.19 MB / 0.5602 GB, free: 2.578 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002422/0.6798, allocations: 2.217 MB / 0.5624 GB, free: 340 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002207/0.6821, allocations: 461.8 kB / 0.5628 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005055/0.6826, allocations: 155.4 kB / 0.563 GB, free: 15.72 MB / 446.1 MB Notification: Performance of SimCode: time 1.864e-06/0.6826, allocations: 0 / 0.563 GB, free: 15.72 MB / 446.1 MB Notification: Performance of Templates: time 0.06363/0.7462, allocations: 31.04 MB / 0.5933 GB, free: 0.7578 MB / 462.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","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches