Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001873/0.001873, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002787/0.002787, allocations: 209.5 kB / 25.13 MB, free: 3.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.4 MB / 258.7 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2399/0.2399, allocations: 46.93 MB / 362 MB, free: 4.309 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=2000,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.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002304/0.002304, allocations: 83.86 kB / 0.4978 GB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.346, allocations: 66.08 MB / 0.5623 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.0146/0.3606, allocations: 11.72 MB / 0.5738 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008043/0.3687, allocations: 3.972 MB / 0.5777 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.3706, allocations: 95.31 kB / 0.5777 GB, free: 4.41 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002415/0.373, allocations: 0.9433 MB / 0.5787 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003291/0.3763, allocations: 1.014 MB / 0.5797 GB, free: 2.441 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.3775, allocations: 0.5226 MB / 0.5802 GB, free: 1.918 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004312/0.3818, allocations: 3.352 MB / 0.5834 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002697/0.3845, allocations: 1.755 MB / 0.5852 GB, free: 12.74 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003318/0.3878, allocations: 1.612 MB / 0.5867 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004861/0.3927, allocations: 2.063 MB / 0.5887 GB, free: 9.051 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001412/0.3941, allocations: 436 kB / 0.5892 GB, free: 8.625 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.3965, allocations: 0.535 MB / 0.5897 GB, free: 8.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.3984, allocations: 1.254 MB / 0.5909 GB, free: 6.832 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003457/0.4018, allocations: 1.898 MB / 0.5928 GB, free: 4.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007774/0.4096, allocations: 5.644 MB / 0.5983 GB, free: 15.26 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.4096, allocations: 0 / 0.5983 GB, free: 15.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4096, allocations: 0 / 0.5983 GB, free: 15.26 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001769/0.4098, allocations: 0 / 0.5983 GB, free: 15.26 MB / 446.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.01017/0.4199, allocations: 3.859 MB / 0.602 GB, free: 11.35 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.42, allocations: 8.031 kB / 0.602 GB, free: 11.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001304/0.4213, allocations: 422.5 kB / 0.6024 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004281/0.4256, allocations: 2.012 MB / 0.6044 GB, free: 8.871 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.4258, allocations: 210 kB / 0.6046 GB, free: 8.664 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004944/0.4263, allocations: 299.9 kB / 0.6049 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008189/0.4344, allocations: 3.802 MB / 0.6086 GB, free: 4.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.953e-05/0.4345, allocations: 7.953 kB / 0.6086 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000304/0.4348, allocations: 116 kB / 0.6087 GB, free: 4.359 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001996/0.435, allocations: 145.5 kB / 0.6089 GB, free: 4.215 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006623/0.4417, allocations: 3.172 MB / 0.612 GB, free: 1.031 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02464/0.4663, allocations: 11.23 MB / 0.6229 GB, free: 5.492 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004093/0.4704, allocations: 1.605 MB / 0.6245 GB, free: 3.883 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002356/0.4727, allocations: 1.129 MB / 0.6256 GB, free: 2.746 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/0.473, allocations: 53.27 kB / 0.6257 GB, free: 2.695 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.4731, allocations: 55.86 kB / 0.6257 GB, free: 2.629 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 3.216e-06/0.4731, allocations: 0 / 0.6257 GB, free: 2.629 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01931/0.4924, allocations: 7.734 MB / 0.6333 GB, free: 10.87 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/0.4925, allocations: 68.72 kB / 0.6333 GB, free: 10.79 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003879/0.4963, allocations: 1.957 MB / 0.6352 GB, free: 8.793 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002819/0.4966, allocations: 53.7 kB / 0.6353 GB, free: 8.734 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.4979, allocations: 1.398 MB / 0.6366 GB, free: 7.324 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007375/0.4987, allocations: 0.5577 MB / 0.6372 GB, free: 6.762 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000772/0.4994, allocations: 319.4 kB / 0.6375 GB, free: 6.441 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.4996, allocations: 301.1 kB / 0.6378 GB, free: 6.145 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.5013, allocations: 0.8862 MB / 0.6387 GB, free: 5.258 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/0.5034, allocations: 1.348 MB / 0.64 GB, free: 3.719 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/0.5073, allocations: 2.396 MB / 0.6423 GB, free: 1.129 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/0.5073, allocations: 4 kB / 0.6423 GB, free: 1.125 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006103/0.5134, allocations: 2.854 MB / 0.6451 GB, free: 14.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.5135, allocations: 18.17 kB / 0.6451 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.119e-05/0.5135, allocations: 19.94 kB / 0.6451 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.5146, allocations: 383.6 kB / 0.6455 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001901/0.5165, allocations: 447.3 kB / 0.6459 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007496/0.524, allocations: 6.451 MB / 0.6522 GB, free: 6.605 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.5259, allocations: 123.8 kB / 0.6523 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003692/0.5263, allocations: 79.98 kB / 0.6524 GB, free: 6.406 MB / 494.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.002258/0.5286, allocations: 0.9032 MB / 0.6533 GB, free: 5.492 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007474/0.5293, allocations: 218.5 kB / 0.6535 GB, free: 5.277 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006263/0.5356, allocations: 2.899 MB / 0.6563 GB, free: 2.359 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.5356, allocations: 16 kB / 0.6564 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/0.5356, allocations: 8 kB / 0.6564 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/0.5356, allocations: 7.969 kB / 0.6564 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/0.5495, allocations: 6.072 MB / 0.6623 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/0.5495, allocations: 4 kB / 0.6623 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.5507, allocations: 239.6 kB / 0.6625 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/0.553, allocations: 0.8027 MB / 0.6633 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.5532, allocations: 35.98 kB / 0.6634 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/0.5685, allocations: 10.46 MB / 0.6736 GB, free: 236 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.5685, allocations: 8.156 kB / 0.6736 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008667/0.5772, allocations: 4.166 MB / 0.6776 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/0.5788, allocations: 418.5 kB / 0.678 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006835/0.5795, allocations: 36 kB / 0.6781 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.581, allocations: 95.88 kB / 0.6782 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003935/0.5814, allocations: 129 kB / 0.6783 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.5815, allocations: 43.98 kB / 0.6783 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002465/0.584, allocations: 1.344 MB / 0.6797 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.584, allocations: 0 / 0.6797 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002569/0.5865, allocations: 0.5742 MB / 0.6802 GB, free: 9.332 MB / 0.5137 GB 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.000532/0.5871, allocations: 206.9 kB / 0.6804 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004656/0.5917, allocations: 2.477 MB / 0.6828 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/0.5917, allocations: 7.922 kB / 0.6828 GB, free: 6.594 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002802/0.5945, allocations: 1.561 MB / 0.6844 GB, free: 4.996 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/0.5974, allocations: 0.5388 MB / 0.6849 GB, free: 4.465 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.6095, allocations: 5.86 MB / 0.6906 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002586/0.6121, allocations: 2.217 MB / 0.6928 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001661/0.6138, allocations: 465.9 kB / 0.6932 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005334/0.6143, allocations: 159.4 kB / 0.6934 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of SimCode: time 1.022e-06/0.6143, allocations: 0 / 0.6934 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of Templates: time 0.07041/0.6847, allocations: 35.12 MB / 0.7277 GB, free: 8.781 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.68838888197206]