Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009163/0.0009163, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001158, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2026/0.2026, allocations: 46.18 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003352, allocations: 7.938 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1286, allocations: 63.55 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01391/0.1425, allocations: 11.02 MB / 494.1 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009101/0.1517, allocations: 3.875 MB / 498 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002705/0.1544, allocations: 67.62 kB / 498 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.1576, allocations: 0.7496 MB / 498.8 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004327/0.162, allocations: 0.8705 MB / 499.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.1639, allocations: 463.5 kB / 0.4884 GB, free: 3.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005259/0.1691, allocations: 3.641 MB / 0.4919 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004173/0.1733, allocations: 2.546 MB / 0.4944 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.1756, allocations: 1.151 MB / 0.4956 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00295/0.1785, allocations: 1.645 MB / 0.4972 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008192/0.1794, allocations: 168 kB / 0.4973 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.1807, allocations: 291.8 kB / 0.4976 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001527/0.1822, allocations: 0.9265 MB / 0.4985 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002985/0.1852, allocations: 1.563 MB / 0.5 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006616/0.1919, allocations: 5.2 MB / 0.5051 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1919, allocations: 0 / 0.5051 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.1919, allocations: 0 / 0.5051 GB, free: 1.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002129/0.1921, allocations: 0 / 0.5051 GB, free: 1.805 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.2363/0.4285, allocations: 3.225 MB / 0.5083 GB, free: 37.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.4285, allocations: 9.688 kB / 0.5083 GB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/0.4304, allocations: 405.5 kB / 0.5087 GB, free: 37.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003989/0.4344, allocations: 2.028 MB / 0.5106 GB, free: 36.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.4347, allocations: 222.8 kB / 0.5109 GB, free: 36.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005353/0.4352, allocations: 281.2 kB / 0.5111 GB, free: 36.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007356/0.4426, allocations: 3.747 MB / 0.5148 GB, free: 35.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.757e-05/0.4427, allocations: 12.56 kB / 0.5148 GB, free: 35.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.4429, allocations: 113.7 kB / 0.5149 GB, free: 34.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/0.4431, allocations: 142.6 kB / 0.515 GB, free: 34.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005892/0.449, allocations: 3.183 MB / 0.5181 GB, free: 33.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/0.4673, allocations: 11.61 MB / 0.5295 GB, free: 26.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003738/0.4711, allocations: 2.172 MB / 0.5316 GB, free: 24.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0021/0.4732, allocations: 1.242 MB / 0.5328 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002685/0.4735, allocations: 206.5 kB / 0.533 GB, free: 24.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.4736, allocations: 51.75 kB / 0.5331 GB, free: 24.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.526e-06/0.4736, allocations: 3.938 kB / 0.5331 GB, free: 24.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01686/0.4904, allocations: 7.934 MB / 0.5408 GB, free: 17.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.4905, allocations: 68.72 kB / 0.5409 GB, free: 17.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/0.4932, allocations: 1.945 MB / 0.5428 GB, free: 15.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/0.4935, allocations: 53.7 kB / 0.5428 GB, free: 15.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006541/0.4941, allocations: 1.372 MB / 0.5442 GB, free: 13.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/0.4946, allocations: 0.5195 MB / 0.5447 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.4948, allocations: 141.6 kB / 0.5448 GB, free: 13.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.368e-05/0.4948, allocations: 307.2 kB / 0.5451 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.4961, allocations: 0.8924 MB / 0.546 GB, free: 11.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.4975, allocations: 1.348 MB / 0.5473 GB, free: 10.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002698/0.5002, allocations: 2.392 MB / 0.5496 GB, free: 7.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.5003, allocations: 4 kB / 0.5496 GB, free: 7.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004462/0.5047, allocations: 2.945 MB / 0.5525 GB, free: 4.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.5048, allocations: 14.48 kB / 0.5525 GB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.5048, allocations: 16 kB / 0.5525 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008149/0.5057, allocations: 394 kB / 0.5529 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.5074, allocations: 455.2 kB / 0.5534 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005762/0.5131, allocations: 6.217 MB / 0.5594 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.5156, allocations: 123.7 kB / 0.5595 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003816/0.516, allocations: 75.98 kB / 0.5596 GB, free: 13.2 MB / 398.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.002388/0.5184, allocations: 0.9023 MB / 0.5605 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006935/0.5191, allocations: 209.4 kB / 0.5607 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006138/0.5252, allocations: 2.923 MB / 0.5635 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.5253, allocations: 16 kB / 0.5636 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/0.5253, allocations: 11.98 kB / 0.5636 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.318e-05/0.5254, allocations: 4.078 kB / 0.5636 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/0.5388, allocations: 6.157 MB / 0.5696 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.5388, allocations: 8.062 kB / 0.5696 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.5399, allocations: 243.6 kB / 0.5698 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002224/0.5421, allocations: 0.8077 MB / 0.5706 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001582/0.5423, allocations: 35.98 kB / 0.5707 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01332/0.5556, allocations: 9.846 MB / 0.5803 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.5557, allocations: 7.938 kB / 0.5803 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00816/0.5638, allocations: 4.189 MB / 0.5844 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/0.5652, allocations: 494.3 kB / 0.5848 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006171/0.5658, allocations: 39.98 kB / 0.5849 GB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.5674, allocations: 100.1 kB / 0.585 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/0.5677, allocations: 129 kB / 0.5851 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.5679, allocations: 47.98 kB / 0.5851 GB, free: 2.422 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002893/0.5708, allocations: 1.341 MB / 0.5865 GB, free: 1.059 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.5708, allocations: 4 kB / 0.5865 GB, free: 1.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002904/0.5737, allocations: 0.577 MB / 0.587 GB, free: 492 kB / 414.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.0006195/0.5744, allocations: 190.3 kB / 0.5872 GB, free: 296 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004637/0.579, allocations: 2.64 MB / 0.5898 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.579, allocations: 0 / 0.5898 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002846/0.5819, allocations: 1.642 MB / 0.5914 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004754/0.5867, allocations: 0.5066 MB / 0.5919 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.6002, allocations: 7.176 MB / 0.5989 GB, free: 4.168 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003085/0.6034, allocations: 2.214 MB / 0.601 GB, free: 1.922 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001971/0.6053, allocations: 477.8 kB / 0.6015 GB, free: 1.453 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000692/0.6061, allocations: 151.4 kB / 0.6016 GB, free: 1.305 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.6061, allocations: 0 / 0.6016 GB, free: 1.305 MB / 430.1 MB Notification: Performance of Templates: time 0.06274/0.6688, allocations: 31.19 MB / 0.6321 GB, free: 2.359 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches