Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.0008141/0.000814, allocations: 91.72 kB / 17.35 MB, free: 6.031 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.000844/0.0008441, allocations: 177.4 kB / 18.26 MB, free: 5.391 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.569/1.569, allocations: 223.3 MB / 242.3 MB, free: 14.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2326/0.2326, allocations: 44.24 MB / 337.7 MB, free: 2.418 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006494/0.0006491, allocations: 9.531 kB / 410.3 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1599, allocations: 61.93 MB / 472.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.0128/0.1728, allocations: 10.97 MB / 483.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008611/0.1814, allocations: 3.82 MB / 487 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00321/0.1847, allocations: 67.69 kB / 487.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003681/0.1884, allocations: 0.7573 MB / 487.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00475/0.1932, allocations: 0.851 MB / 488.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.1949, allocations: 463.5 kB / 489.2 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004974/0.1999, allocations: 3.629 MB / 492.8 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003332/0.2033, allocations: 2.553 MB / 495.4 MB, free: 6.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.2053, allocations: 1.151 MB / 496.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.2078, allocations: 1.638 MB / 498.1 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003653/0.2082, allocations: 175.9 kB / 498.3 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008333/0.209, allocations: 291.7 kB / 498.6 MB, free: 2.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009828/0.21, allocations: 0.911 MB / 499.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.2118, allocations: 1.567 MB / 0.4893 GB, free: 320 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005395/0.2172, allocations: 5.193 MB / 0.4944 GB, free: 11.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2172, allocations: 0 / 0.4944 GB, free: 11.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2173, allocations: 0 / 0.4944 GB, free: 11.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001734/0.2174, allocations: 0 / 0.4944 GB, free: 11.1 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.008483/0.2259, allocations: 3.217 MB / 0.4975 GB, free: 7.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.226, allocations: 8.031 kB / 0.4976 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.2279, allocations: 400.5 kB / 0.4979 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004552/0.2324, allocations: 2.02 MB / 0.4999 GB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002388/0.2327, allocations: 226 kB / 0.5001 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005666/0.2333, allocations: 287.9 kB / 0.5004 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007636/0.2409, allocations: 3.739 MB / 0.5041 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.096e-05/0.241, allocations: 3.938 kB / 0.5041 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/0.2413, allocations: 116 kB / 0.5042 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001662/0.2415, allocations: 141.5 kB / 0.5043 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2892/0.5307, allocations: 3.179 MB / 0.5074 GB, free: 45.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02521/0.5559, allocations: 11.62 MB / 0.5188 GB, free: 39.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004058/0.56, allocations: 2.189 MB / 0.5209 GB, free: 38.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002396/0.5625, allocations: 1.232 MB / 0.5221 GB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003407/0.5628, allocations: 215.9 kB / 0.5223 GB, free: 37.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.5629, allocations: 45.28 kB / 0.5223 GB, free: 37.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.847e-06/0.5629, allocations: 1.422 kB / 0.5223 GB, free: 37.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01696/0.5799, allocations: 7.925 MB / 0.5301 GB, free: 33.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.58, allocations: 71.47 kB / 0.5301 GB, free: 33.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002769/0.5827, allocations: 1.947 MB / 0.5321 GB, free: 32.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.5829, allocations: 55.58 kB / 0.5321 GB, free: 32.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000772/0.5837, allocations: 1.361 MB / 0.5334 GB, free: 30.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.584, allocations: 0.5233 MB / 0.5339 GB, free: 30.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.5842, allocations: 145.6 kB / 0.5341 GB, free: 30.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.557e-05/0.5843, allocations: 301.1 kB / 0.5344 GB, free: 30 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.5854, allocations: 0.8862 MB / 0.5352 GB, free: 29.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.5869, allocations: 1.358 MB / 0.5366 GB, free: 27.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.5895, allocations: 2.396 MB / 0.5389 GB, free: 24.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.5895, allocations: 4 kB / 0.5389 GB, free: 24.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004345/0.5939, allocations: 2.941 MB / 0.5418 GB, free: 21.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.5939, allocations: 12 kB / 0.5418 GB, free: 21.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.594, allocations: 12 kB / 0.5418 GB, free: 21.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008046/0.5948, allocations: 388.7 kB / 0.5422 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.5963, allocations: 454 kB / 0.5426 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004913/0.6012, allocations: 6.204 MB / 0.5487 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/0.6036, allocations: 123.9 kB / 0.5488 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/0.6038, allocations: 71.98 kB / 0.5489 GB, free: 14.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.001758/0.6056, allocations: 0.9032 MB / 0.5497 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006272/0.6062, allocations: 209.4 kB / 0.5499 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004804/0.611, allocations: 2.929 MB / 0.5528 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.6111, allocations: 12 kB / 0.5528 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.6111, allocations: 11.94 kB / 0.5528 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.6111, allocations: 7.969 kB / 0.5528 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009479/0.6206, allocations: 6.164 MB / 0.5588 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.6207, allocations: 4 kB / 0.5588 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009219/0.6216, allocations: 236.1 kB / 0.5591 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/0.6233, allocations: 0.8006 MB / 0.5599 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.6234, allocations: 39.98 kB / 0.5599 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.6346, allocations: 9.859 MB / 0.5695 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.6346, allocations: 4.094 kB / 0.5695 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007444/0.6421, allocations: 4.19 MB / 0.5736 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/0.6438, allocations: 494.3 kB / 0.5741 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.6441, allocations: 32 kB / 0.5741 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.6453, allocations: 103.9 kB / 0.5742 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003879/0.6457, allocations: 121 kB / 0.5743 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.6458, allocations: 47.98 kB / 0.5744 GB, free: 3.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00264/0.6484, allocations: 1.34 MB / 0.5757 GB, free: 2.215 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6485, allocations: 0 / 0.5757 GB, free: 2.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002946/0.6514, allocations: 0.5731 MB / 0.5762 GB, free: 1.645 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.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 (116): * Single equations (assignments): 113 * 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.0004602/0.6519, allocations: 203.8 kB / 0.5764 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004634/0.6565, allocations: 2.645 MB / 0.579 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.6566, allocations: 0 / 0.579 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00258/0.6591, allocations: 1.641 MB / 0.5806 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/0.6629, allocations: 0.4985 MB / 0.5811 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.6763, allocations: 7.186 MB / 0.5881 GB, free: 5.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002304/0.6787, allocations: 2.217 MB / 0.5903 GB, free: 3.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002273/0.6809, allocations: 469.7 kB / 0.5907 GB, free: 2.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/0.6816, allocations: 151.4 kB / 0.5909 GB, free: 2.461 MB / 414.1 MB Notification: Performance of SimCode: time 1.834e-06/0.6816, allocations: 0 / 0.5909 GB, free: 2.461 MB / 414.1 MB Notification: Performance of Templates: time 0.05914/0.7408, allocations: 31.11 MB / 0.6213 GB, free: 3.613 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches