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.001459/0.001459, allocations: 101.5 kB / 17.85 MB, free: 5.664 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.001657/0.001657, allocations: 194 kB / 18.76 MB, free: 4.746 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.349/1.349, allocations: 222.9 MB / 242.4 MB, free: 15.36 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.2016/0.2016, allocations: 44.19 MB / 336.8 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 60.88 kB / 408.4 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1055, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01296/0.1184, allocations: 11.57 MB / 480.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007622/0.1261, allocations: 3.855 MB / 484.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.1283, allocations: 67.69 kB / 484.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.1311, allocations: 0.7613 MB / 485.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003459/0.1345, allocations: 0.847 MB / 486.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.1362, allocations: 463.5 kB / 486.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004682/0.1409, allocations: 3.637 MB / 490.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003897/0.1448, allocations: 2.581 MB / 492.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002196/0.147, allocations: 1.354 MB / 494.3 MB, free: 5.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003201/0.1502, allocations: 1.919 MB / 496.2 MB, free: 3.645 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001188/0.1514, allocations: 260 kB / 496.5 MB, free: 3.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.153, allocations: 379.8 kB / 496.8 MB, free: 3.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0016/0.1546, allocations: 1.055 MB / 497.9 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003123/0.1578, allocations: 1.718 MB / 499.6 MB, free: 240 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004873/0.1627, allocations: 4.595 MB / 0.4924 GB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1627, allocations: 0 / 0.4924 GB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1627, allocations: 0 / 0.4924 GB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001817/0.1629, allocations: 3.938 kB / 0.4924 GB, free: 11.62 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.00882/0.1717, allocations: 3.825 MB / 0.4961 GB, free: 7.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1718, allocations: 12.03 kB / 0.4961 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009745/0.1728, allocations: 388.6 kB / 0.4965 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003171/0.1759, allocations: 2.032 MB / 0.4985 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.1761, allocations: 222 kB / 0.4987 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003948/0.1765, allocations: 291.9 kB / 0.499 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005922/0.1825, allocations: 3.739 MB / 0.5026 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-05/0.1825, allocations: 4 kB / 0.5026 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002505/0.1828, allocations: 120 kB / 0.5028 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001349/0.1829, allocations: 145.5 kB / 0.5029 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1836/0.3666, allocations: 3.167 MB / 0.506 GB, free: 46.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01833/0.3849, allocations: 11.55 MB / 0.5173 GB, free: 40.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/0.3886, allocations: 2.178 MB / 0.5194 GB, free: 39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.3904, allocations: 1.233 MB / 0.5206 GB, free: 38.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002691/0.3907, allocations: 207.6 kB / 0.5208 GB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.3908, allocations: 49.16 kB / 0.5209 GB, free: 38.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.457e-06/0.3908, allocations: 1.188 kB / 0.5209 GB, free: 38.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01582/0.4066, allocations: 7.856 MB / 0.5285 GB, free: 33.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.4067, allocations: 79.78 kB / 0.5286 GB, free: 33.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002401/0.4091, allocations: 1.945 MB / 0.5305 GB, free: 32.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.4093, allocations: 51.11 kB / 0.5305 GB, free: 32.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006456/0.4099, allocations: 1.365 MB / 0.5319 GB, free: 31.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003439/0.4103, allocations: 0.5154 MB / 0.5324 GB, free: 30.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004372/0.4107, allocations: 323.3 kB / 0.5327 GB, free: 30.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.151e-05/0.4108, allocations: 301.1 kB / 0.533 GB, free: 30.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.412, allocations: 0.8823 MB / 0.5338 GB, free: 29.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.4134, allocations: 1.344 MB / 0.5352 GB, free: 27.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.416, allocations: 2.399 MB / 0.5375 GB, free: 25.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.416, allocations: 4 kB / 0.5375 GB, free: 25.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004219/0.4203, allocations: 2.931 MB / 0.5404 GB, free: 22.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.4203, allocations: 12 kB / 0.5404 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.4203, allocations: 12 kB / 0.5404 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008362/0.4212, allocations: 391.1 kB / 0.5408 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.4227, allocations: 455.2 kB / 0.5412 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004233/0.427, allocations: 6.208 MB / 0.5473 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/0.4287, allocations: 119.9 kB / 0.5474 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.4288, allocations: 71.98 kB / 0.5474 GB, free: 14.67 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.00122/0.4301, allocations: 0.9072 MB / 0.5483 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003299/0.4304, allocations: 205.4 kB / 0.5485 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/0.4346, allocations: 2.918 MB / 0.5514 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.4346, allocations: 16.75 kB / 0.5514 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.4346, allocations: 4 kB / 0.5514 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.4347, allocations: 11.97 kB / 0.5514 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008275/0.4429, allocations: 6.147 MB / 0.5574 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.443, allocations: 7.938 kB / 0.5574 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.444, allocations: 243.6 kB / 0.5576 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/0.4458, allocations: 0.7927 MB / 0.5584 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.4459, allocations: 39.97 kB / 0.5585 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/0.4563, allocations: 9.836 MB / 0.5681 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.4563, allocations: 8.094 kB / 0.5681 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006667/0.463, allocations: 4.174 MB / 0.5721 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.4641, allocations: 490.4 kB / 0.5726 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003185/0.4644, allocations: 36 kB / 0.5726 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.4655, allocations: 95.88 kB / 0.5727 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.4658, allocations: 125 kB / 0.5729 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.466, allocations: 47.98 kB / 0.5729 GB, free: 3.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001952/0.4679, allocations: 1.333 MB / 0.5742 GB, free: 2.605 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4679, allocations: 3.938 kB / 0.5742 GB, free: 2.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001902/0.4698, allocations: 0.579 MB / 0.5748 GB, free: 2.023 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.0003867/0.4702, allocations: 204.3 kB / 0.575 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004006/0.4743, allocations: 2.631 MB / 0.5775 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4743, allocations: 0 / 0.5775 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002323/0.4766, allocations: 1.64 MB / 0.5791 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002478/0.4791, allocations: 0.4907 MB / 0.5796 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4897, allocations: 7.138 MB / 0.5866 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.4916, allocations: 2.186 MB / 0.5887 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008363/0.4925, allocations: 163.4 kB / 0.5889 GB, free: 3.391 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4925, allocations: 0 / 0.5889 GB, free: 3.391 MB / 414.1 MB Notification: Performance of Templates: time 0.09382/0.5863, allocations: 85.11 MB / 0.672 GB, free: 14.29 MB / 0.4981 GB 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/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_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches