Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9602/0.9602, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3200,variableFilter="time|toSpacePhasor.y.[0-9,]+.|hallSensor.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3200,variableFilter="time|toSpacePhasor.y.[0-9,]+.|hallSensor.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.814e-05/1.958e-05, allocations: 5.688 kB / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009789/0.009809, allocations: 9.045 MB / 282.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.01361, allocations: 3.112 MB / 285.2 MB, free: 5.629 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004776/0.01408, allocations: 55.62 kB / 285.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009889/0.01507, allocations: 0.6521 MB / 285.9 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.01623, allocations: 0.7917 MB / 286.7 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004138/0.01664, allocations: 315.4 kB / 287 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001604/0.01825, allocations: 2.225 MB / 289.3 MB, free: 1.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007506/0.019, allocations: 0.8051 MB / 290.1 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.108/0.127, allocations: 1.386 MB / 291.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.1286, allocations: 1.045 MB / 292.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003927/0.129, allocations: 231.8 kB / 292.7 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005881/0.1296, allocations: 330 kB / 293 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005909/0.1302, allocations: 0.7234 MB / 293.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009261/0.1311, allocations: 0.7547 MB / 294.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002035/0.1331, allocations: 1.729 MB / 296.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1331, allocations: 0 / 296.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1331, allocations: 0 / 296.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.673e-05/0.1332, allocations: 2.438 kB / 296.2 MB, free: 15.69 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.00353/0.1367, allocations: 2.421 MB / 298.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1367, allocations: 9.219 kB / 298.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007613/0.1375, allocations: 379.2 kB / 299 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.1391, allocations: 1.139 MB / 300.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.96e-05/0.1392, allocations: 116.6 kB / 300.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.1394, allocations: 157.2 kB / 300.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.1414, allocations: 1.294 MB / 301.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.393e-05/0.1415, allocations: 12.05 kB / 301.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.1416, allocations: 69.02 kB / 301.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.697e-05/0.1417, allocations: 75.91 kB / 301.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.143, allocations: 0.5934 MB / 302.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.1484, allocations: 6.301 MB / 308.8 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.1488, allocations: 236.5 kB / 309 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1489, allocations: 112 kB / 309.1 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.149, allocations: 45.62 kB / 309.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.1491, allocations: 48.3 kB / 309.2 MB, free: 9.527 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.793e-06/0.1491, allocations: 0 / 309.2 MB, free: 9.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.002298/0.1514, allocations: 1.787 MB / 311 MB, free: 8.746 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/0.1514, allocations: 61.94 kB / 311.1 MB, free: 8.684 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.1524, allocations: 1.429 MB / 312.5 MB, free: 7.863 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.1524, allocations: 37.36 kB / 312.5 MB, free: 7.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003725/0.1528, allocations: 1.15 MB / 313.7 MB, free: 6.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.1529, allocations: 247.6 kB / 313.9 MB, free: 6.609 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.1532, allocations: 334.2 kB / 314.3 MB, free: 6.398 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.552e-05/0.1532, allocations: 480.7 kB / 314.7 MB, free: 5.926 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.1535, allocations: 182.4 kB / 314.9 MB, free: 5.867 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000557/0.154, allocations: 1.546 MB / 316.5 MB, free: 3.938 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009942/0.155, allocations: 1.902 MB / 318.4 MB, free: 1.543 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.155, allocations: 8 kB / 318.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.002165/0.1572, allocations: 1.51 MB / 319.9 MB, free: 216 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.1572, allocations: 16.62 kB / 319.9 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.1572, allocations: 39.89 kB / 319.9 MB, free: 164 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003352/0.1576, allocations: 137.2 kB / 320.1 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007274/0.1583, allocations: 391.2 kB / 320.4 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.1595, allocations: 1.919 MB / 322.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.1608, allocations: 143.2 kB / 322.5 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.312e-05/0.1609, allocations: 96 kB / 322.6 MB, free: 13.42 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004517/0.1613, allocations: 283.4 kB / 322.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.1615, allocations: 171.1 kB / 323 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008396/0.1624, allocations: 0.5913 MB / 323.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1624, allocations: 11.52 kB / 323.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1624, allocations: 4 kB / 323.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.1624, allocations: 3.984 kB / 323.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002653/0.165, allocations: 1.998 MB / 325.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.165, allocations: 2.938 kB / 325.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.1653, allocations: 119.1 kB / 325.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002235/0.1655, allocations: 97.52 kB / 325.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.1656, allocations: 12 kB / 325.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009264/0.1665, allocations: 1.872 MB / 327.7 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1665, allocations: 0 / 327.7 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.1675, allocations: 0.9079 MB / 328.7 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003059/0.1678, allocations: 210.9 kB / 328.9 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.762e-05/0.1679, allocations: 12 kB / 328.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.1682, allocations: 47.89 kB / 328.9 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.1683, allocations: 56.03 kB / 329 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.1684, allocations: 20 kB / 329 MB, free: 6.805 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000812/0.1692, allocations: 0.7591 MB / 329.8 MB, free: 6.047 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1692, allocations: 0 / 329.8 MB, free: 6.047 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001089/0.1703, allocations: 360 kB / 330.1 MB, free: 5.695 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * 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 (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000255/0.1705, allocations: 173.2 kB / 330.3 MB, free: 5.527 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.1718, allocations: 1.01 MB / 331.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1718, allocations: 7.938 kB / 331.3 MB, free: 4.582 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.1723, allocations: 468.8 kB / 331.7 MB, free: 4.094 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000913/0.1732, allocations: 369.4 kB / 332.1 MB, free: 3.766 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.1766, allocations: 2.605 MB / 334.7 MB, free: 1.098 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.177, allocations: 400.8 kB / 335.1 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006492/0.1776, allocations: 352.9 kB / 335.4 MB, free: 336 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.1778, allocations: 104.5 kB / 335.6 MB, free: 232 kB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/0.1778, allocations: 0 / 335.6 MB, free: 232 kB / 282.7 MB Notification: Performance of Templates: time 0.02384/0.2016, allocations: 18.67 MB / 354.2 MB, free: 13.93 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.207566425902769]