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.001177/0.001177, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 79.88 kB / 419 MB, free: 18.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1541, allocations: 62.44 MB / 481.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01415/0.1683, allocations: 11.72 MB / 493.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009052/0.1774, allocations: 3.953 MB / 497.1 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00208/0.1795, allocations: 79.56 kB / 497.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002349/0.1819, allocations: 0.8692 MB / 498.1 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003841/0.1858, allocations: 0.9551 MB / 499 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.1872, allocations: 0.5227 MB / 499.5 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004293/0.1915, allocations: 3.329 MB / 0.4911 GB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003471/0.195, allocations: 3.037 MB / 0.4941 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.1975, allocations: 1.561 MB / 0.4956 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002819/0.2003, allocations: 2.008 MB / 0.4975 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006402/0.201, allocations: 428 kB / 0.498 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.202, allocations: 0.5389 MB / 0.4985 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.2032, allocations: 1.231 MB / 0.4997 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.2054, allocations: 1.894 MB / 0.5015 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.279/0.4844, allocations: 5.591 MB / 0.507 GB, free: 22.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.522e-05/0.4845, allocations: 0 / 0.507 GB, free: 22.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.344e-06/0.4845, allocations: 0 / 0.507 GB, free: 22.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.4848, allocations: 0.5625 kB / 0.507 GB, free: 22.86 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.01151/0.4963, allocations: 3.844 MB / 0.5107 GB, free: 21.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.4964, allocations: 9 kB / 0.5108 GB, free: 21.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001552/0.498, allocations: 399.2 kB / 0.5111 GB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004429/0.5024, allocations: 2.084 MB / 0.5132 GB, free: 20.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.5026, allocations: 215.6 kB / 0.5134 GB, free: 20.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004364/0.503, allocations: 285.2 kB / 0.5136 GB, free: 20.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006914/0.51, allocations: 3.735 MB / 0.5173 GB, free: 20.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-05/0.5101, allocations: 11.19 kB / 0.5173 GB, free: 20.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.5103, allocations: 120.1 kB / 0.5174 GB, free: 20.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002155/0.5106, allocations: 141.1 kB / 0.5176 GB, free: 20.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005942/0.5165, allocations: 3.177 MB / 0.5207 GB, free: 19.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02003/0.5366, allocations: 11.44 MB / 0.5318 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003592/0.5402, allocations: 2.176 MB / 0.5339 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.542, allocations: 1.236 MB / 0.5352 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003043/0.5423, allocations: 210.8 kB / 0.5354 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.5424, allocations: 46.09 kB / 0.5354 GB, free: 10.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.937e-06/0.5424, allocations: 0 / 0.5354 GB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01737/0.5598, allocations: 7.868 MB / 0.5431 GB, free: 5.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.5599, allocations: 64.72 kB / 0.5431 GB, free: 4.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/0.5632, allocations: 1.954 MB / 0.5451 GB, free: 2.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001637/0.5634, allocations: 52.52 kB / 0.5451 GB, free: 2.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007628/0.5642, allocations: 1.372 MB / 0.5464 GB, free: 1.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003631/0.5645, allocations: 0.5215 MB / 0.547 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005626/0.5651, allocations: 319.3 kB / 0.5473 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5653, allocations: 304.3 kB / 0.5475 GB, free: 440 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.5669, allocations: 0.8862 MB / 0.5484 GB, free: 15.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001924/0.5688, allocations: 1.347 MB / 0.5497 GB, free: 14.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00333/0.5722, allocations: 2.384 MB / 0.5521 GB, free: 11.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.5722, allocations: 4 kB / 0.5521 GB, free: 11.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005368/0.5776, allocations: 2.937 MB / 0.5549 GB, free: 8.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.5776, allocations: 14.3 kB / 0.5549 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.5776, allocations: 12 kB / 0.555 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008808/0.5785, allocations: 383.6 kB / 0.5553 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.5802, allocations: 453.5 kB / 0.5558 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00621/0.5864, allocations: 6.759 MB / 0.5624 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/0.5882, allocations: 123.8 kB / 0.5625 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.5884, allocations: 71.98 kB / 0.5625 GB, free: 468 kB / 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.001726/0.5901, allocations: 0.9007 MB / 0.5634 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003765/0.5905, allocations: 209.4 kB / 0.5636 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00483/0.5953, allocations: 2.924 MB / 0.5665 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.5954, allocations: 16 kB / 0.5665 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.5954, allocations: 9.406 kB / 0.5665 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.5954, allocations: 7.969 kB / 0.5665 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/0.6061, allocations: 6.127 MB / 0.5725 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.6062, allocations: 4 kB / 0.5725 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.6072, allocations: 245.8 kB / 0.5727 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/0.6092, allocations: 0.8078 MB / 0.5735 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.6094, allocations: 35.98 kB / 0.5735 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/0.6222, allocations: 10.75 MB / 0.584 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.6222, allocations: 5.875 kB / 0.584 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007052/0.6293, allocations: 4.18 MB / 0.5881 GB, free: 5.812 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/0.631, allocations: 491.2 kB / 0.5886 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003568/0.6314, allocations: 32 kB / 0.5886 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.6325, allocations: 95.88 kB / 0.5887 GB, free: 5.188 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003965/0.6329, allocations: 128.4 kB / 0.5888 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.6331, allocations: 47.98 kB / 0.5889 GB, free: 5.016 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002433/0.6355, allocations: 1.339 MB / 0.5902 GB, free: 3.656 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.774e-06/0.6355, allocations: 0 / 0.5902 GB, free: 3.656 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002194/0.6377, allocations: 0.5837 MB / 0.5908 GB, free: 3.074 MB / 430.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.0004395/0.6382, allocations: 193.9 kB / 0.591 GB, free: 2.887 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004105/0.6423, allocations: 2.645 MB / 0.5935 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.6423, allocations: 0 / 0.5935 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002351/0.6447, allocations: 1.642 MB / 0.5951 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.6471, allocations: 0.5365 MB / 0.5957 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009644/0.6568, allocations: 5.744 MB / 0.6013 GB, free: 8.277 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/0.6589, allocations: 2.221 MB / 0.6034 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001649/0.6605, allocations: 465.9 kB / 0.6039 GB, free: 5.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005026/0.6611, allocations: 155.4 kB / 0.604 GB, free: 5.418 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6611, allocations: 0 / 0.604 GB, free: 5.418 MB / 446.1 MB Notification: Performance of Templates: time 0.05538/0.7165, allocations: 32.92 MB / 0.6362 GB, free: 4.836 MB / 478.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches