Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.1 MB / 222.5 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 100 kB / 269.9 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3595/0.3595, allocations: 43.5 MB / 360.7 MB, free: 51.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 52.16 kB / 429.2 MB, free: 6.406 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1175, allocations: 57.76 MB / 487 MB, free: 12.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01268/0.1302, allocations: 11.54 MB / 498.5 MB, free: 0.957 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007402/0.1376, allocations: 3.915 MB / 0.4907 GB, free: 13.03 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.1395, allocations: 59.69 kB / 0.4907 GB, free: 12.97 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.142, allocations: 0.7536 MB / 0.4915 GB, free: 12.21 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00307/0.1451, allocations: 0.8588 MB / 0.4923 GB, free: 11.35 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.1465, allocations: 463.5 kB / 0.4928 GB, free: 10.89 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00434/0.1509, allocations: 3.692 MB / 0.4964 GB, free: 7.191 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003777/0.1547, allocations: 2.521 MB / 0.4988 GB, free: 4.613 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.1568, allocations: 1.354 MB / 0.5001 GB, free: 3.254 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00297/0.1598, allocations: 1.915 MB / 0.502 GB, free: 1.332 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009174/0.1607, allocations: 260 kB / 0.5023 GB, free: 1.078 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.1623, allocations: 379.8 kB / 0.5026 GB, free: 0.707 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1978/0.3602, allocations: 1.056 MB / 0.5037 GB, free: 42.8 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005058/0.3653, allocations: 1.71 MB / 0.5053 GB, free: 42.63 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006304/0.3716, allocations: 5.367 MB / 0.5106 GB, free: 42.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3716, allocations: 0 / 0.5106 GB, free: 42.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.3716, allocations: 3.938 kB / 0.5106 GB, free: 42.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001335/0.3718, allocations: 0.6875 kB / 0.5106 GB, free: 42.01 MB / 394.7 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.007669/0.3795, allocations: 3.819 MB / 0.5143 GB, free: 40.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3795, allocations: 10.19 kB / 0.5143 GB, free: 40.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009733/0.3805, allocations: 395.2 kB / 0.5147 GB, free: 40.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.3835, allocations: 1.939 MB / 0.5166 GB, free: 39.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.3837, allocations: 222.8 kB / 0.5168 GB, free: 39.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003943/0.3841, allocations: 291.9 kB / 0.5171 GB, free: 39.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008957/0.3931, allocations: 3.727 MB / 0.5207 GB, free: 38.44 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-05/0.3932, allocations: 3.312 kB / 0.5207 GB, free: 38.44 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/0.3935, allocations: 125.2 kB / 0.5208 GB, free: 38.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001655/0.3937, allocations: 140.6 kB / 0.521 GB, free: 38.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004964/0.3987, allocations: 3.166 MB / 0.5241 GB, free: 37.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0177/0.4164, allocations: 11.56 MB / 0.5354 GB, free: 31.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00333/0.4198, allocations: 2.183 MB / 0.5375 GB, free: 30.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.4216, allocations: 1.23 MB / 0.5387 GB, free: 29.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.4218, allocations: 212.8 kB / 0.5389 GB, free: 29.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.4219, allocations: 50.81 kB / 0.5389 GB, free: 29.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 3.526e-06/0.4219, allocations: 0 / 0.5389 GB, free: 29.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.01755/0.4394, allocations: 8.208 MB / 0.547 GB, free: 26.47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.4395, allocations: 67.69 kB / 0.547 GB, free: 26.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/0.443, allocations: 1.94 MB / 0.5489 GB, free: 25.65 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.4432, allocations: 51.92 kB / 0.549 GB, free: 25.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.4444, allocations: 1.356 MB / 0.5503 GB, free: 24.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000552/0.445, allocations: 0.5162 MB / 0.5508 GB, free: 24.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006394/0.4456, allocations: 321.4 kB / 0.5511 GB, free: 24.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.147e-05/0.4457, allocations: 304.8 kB / 0.5514 GB, free: 23.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.4471, allocations: 0.8787 MB / 0.5522 GB, free: 23.39 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.4488, allocations: 1.348 MB / 0.5536 GB, free: 22.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/0.4517, allocations: 2.381 MB / 0.5559 GB, free: 21.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.4517, allocations: 8.562 kB / 0.5559 GB, free: 21.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004605/0.4563, allocations: 2.934 MB / 0.5588 GB, free: 20.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.4564, allocations: 11.44 kB / 0.5588 GB, free: 20.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.4564, allocations: 14.62 kB / 0.5588 GB, free: 20.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008816/0.4573, allocations: 384.3 kB / 0.5592 GB, free: 19.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/0.4589, allocations: 456.4 kB / 0.5596 GB, free: 19.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004266/0.4631, allocations: 6.207 MB / 0.5656 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/0.4651, allocations: 118.8 kB / 0.5658 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.4653, allocations: 71.81 kB / 0.5658 GB, free: 14.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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.001809/0.4671, allocations: 0.9104 MB / 0.5667 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006148/0.4677, allocations: 209.2 kB / 0.5669 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00488/0.4726, allocations: 2.906 MB / 0.5698 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.4727, allocations: 15.31 kB / 0.5698 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.4727, allocations: 7.688 kB / 0.5698 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.4727, allocations: 7.969 kB / 0.5698 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.483, allocations: 6.154 MB / 0.5758 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.483, allocations: 4 kB / 0.5758 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008952/0.4839, allocations: 249.4 kB / 0.576 GB, free: 7.855 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.4857, allocations: 0.8008 MB / 0.5768 GB, free: 7.047 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.4858, allocations: 35.98 kB / 0.5769 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009829/0.4957, allocations: 9.827 MB / 0.5865 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/0.4957, allocations: 10.62 kB / 0.5865 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05252/0.5483, allocations: 31.59 MB / 0.6173 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.5497, allocations: 478.4 kB / 0.6178 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003988/0.5502, allocations: 43.98 kB / 0.6178 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.5513, allocations: 91.89 kB / 0.6179 GB, free: 12.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/0.5517, allocations: 125.7 kB / 0.618 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.5518, allocations: 47.98 kB / 0.6181 GB, free: 11.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002198/0.554, allocations: 1.333 MB / 0.6194 GB, free: 10.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.554, allocations: 0 / 0.6194 GB, free: 10.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003302/0.5573, allocations: 0.8124 MB / 0.6202 GB, free: 9.766 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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 (117): * Single equations (assignments): 114 * 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.0004659/0.5578, allocations: 200 kB / 0.6204 GB, free: 9.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003901/0.5617, allocations: 2.621 MB / 0.6229 GB, free: 6.941 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5618, allocations: 9.062 kB / 0.6229 GB, free: 6.938 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.564, allocations: 1.641 MB / 0.6245 GB, free: 5.293 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/0.5668, allocations: 0.51 MB / 0.625 GB, free: 4.789 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.5818, allocations: 8.803 MB / 0.6336 GB, free: 11.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003084/0.5849, allocations: 2.273 MB / 0.6358 GB, free: 9.574 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001987/0.5869, allocations: 485.7 kB / 0.6363 GB, free: 9.098 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006417/0.5876, allocations: 167.3 kB / 0.6365 GB, free: 8.938 MB / 458.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5876, allocations: 0 / 0.6365 GB, free: 8.938 MB / 458.7 MB Notification: Performance of Templates: time 0.06454/0.6521, allocations: 40.41 MB / 0.6759 GB, free: 0.6875 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches