Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 139.9 kB / 24.89 MB, free: 9.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9436/0.9436, allocations: 173.3 MB / 201.5 MB, free: 9.211 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400,variableFilter="time|smpm.is.[0-9,]+.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400,variableFilter="time|smpm.is.[0-9,]+.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 268.5 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.121e-05/2.257e-05, allocations: 2.312 kB / 268.5 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007633/0.007655, allocations: 8.745 MB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004816/0.01247, allocations: 3.181 MB / 280.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008121/0.01328, allocations: 51.69 kB / 280.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.01455, allocations: 0.6677 MB / 281.1 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.01618, allocations: 0.7723 MB / 281.9 MB, free: 8.719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006393/0.01682, allocations: 339.3 kB / 282.2 MB, free: 8.387 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001941/0.01876, allocations: 2.174 MB / 284.4 MB, free: 6.203 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009198/0.01968, allocations: 0.836 MB / 285.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.02161, allocations: 1.501 MB / 286.7 MB, free: 3.793 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.02284, allocations: 0.9819 MB / 287.7 MB, free: 2.809 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.02321, allocations: 220 kB / 287.9 MB, free: 2.594 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004933/0.02371, allocations: 311.8 kB / 288.2 MB, free: 2.289 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004413/0.02415, allocations: 0.6738 MB / 288.9 MB, free: 1.613 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006363/0.02478, allocations: 0.7288 MB / 289.6 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.105/0.1297, allocations: 1.673 MB / 291.3 MB, free: 20.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.1298, allocations: 0.6562 kB / 291.3 MB, free: 20.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1298, allocations: 0 / 291.3 MB, free: 20.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.133e-05/0.1298, allocations: 0 / 291.3 MB, free: 20.43 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003465/0.1333, allocations: 2.07 MB / 293.4 MB, free: 19.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.1333, allocations: 9.125 kB / 293.4 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000655/0.134, allocations: 293.7 kB / 293.7 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.1353, allocations: 0.8587 MB / 294.5 MB, free: 19.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.879e-05/0.1353, allocations: 114.8 kB / 294.6 MB, free: 19.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.1355, allocations: 153.7 kB / 294.8 MB, free: 19.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.1371, allocations: 1.189 MB / 296 MB, free: 18.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.745e-05/0.1372, allocations: 9.672 kB / 296 MB, free: 18.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.483e-05/0.1373, allocations: 69.61 kB / 296.1 MB, free: 18.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.318e-05/0.1373, allocations: 77.03 kB / 296.1 MB, free: 18.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009253/0.1383, allocations: 463.8 kB / 296.6 MB, free: 18.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00531/0.1436, allocations: 4.854 MB / 301.4 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.1439, allocations: 253.7 kB / 301.7 MB, free: 16.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.144, allocations: 85.44 kB / 301.8 MB, free: 16.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001192/0.1442, allocations: 33.23 kB / 301.8 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.1442, allocations: 42.28 kB / 301.9 MB, free: 16.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 2.375e-06/0.1442, allocations: 0 / 301.9 MB, free: 16.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.00328/0.1475, allocations: 1.715 MB / 303.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009574/0.1484, allocations: 1.875 MB / 305.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008729/0.1493, allocations: 1.136 MB / 306.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.1493, allocations: 38.73 kB / 306.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002901/0.1496, allocations: 0.9163 MB / 307.5 MB, free: 13.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.1497, allocations: 251.4 kB / 307.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.15, allocations: 307.6 kB / 308.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.322e-05/0.15, allocations: 307.1 kB / 308.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/0.1503, allocations: 195.7 kB / 308.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/0.1507, allocations: 1.117 MB / 309.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009451/0.1517, allocations: 1.488 MB / 311.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.1517, allocations: 7.75 kB / 311.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001314/0.153, allocations: 1.205 MB / 312.4 MB, free: 10.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.153, allocations: 23.41 kB / 312.4 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/0.1531, allocations: 34.81 kB / 312.4 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001961/0.1533, allocations: 130.4 kB / 312.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005608/0.1538, allocations: 376.8 kB / 312.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004696/0.1543, allocations: 1.283 MB / 314.2 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/0.155, allocations: 117.9 kB / 314.3 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/0.1551, allocations: 83.03 kB / 314.4 MB, free: 8.996 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003877/0.1555, allocations: 246.9 kB / 314.7 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1556, allocations: 109.8 kB / 314.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005861/0.1562, allocations: 0.5073 MB / 315.3 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1562, allocations: 5 kB / 315.3 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1562, allocations: 6.312 kB / 315.3 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1562, allocations: 2.062 kB / 315.3 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002211/0.1584, allocations: 2.158 MB / 317.4 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.1584, allocations: 11.94 kB / 317.5 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.1586, allocations: 94.8 kB / 317.6 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003308/0.159, allocations: 189.9 kB / 317.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.159, allocations: 20 kB / 317.8 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.1602, allocations: 2.939 MB / 320.7 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006925/0.1609, allocations: 1.817 MB / 322.5 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007686/0.1617, allocations: 0.8474 MB / 323.4 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.1619, allocations: 169.2 kB / 323.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.797e-05/0.162, allocations: 19.98 kB / 323.5 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.1623, allocations: 23.98 kB / 323.6 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.1623, allocations: 67.12 kB / 323.6 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.1624, allocations: 23.98 kB / 323.7 MB, free: 0.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003566/0.1627, allocations: 0.5211 MB / 324.2 MB, free: 212 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1627, allocations: 0 / 324.2 MB, free: 212 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001164/0.1639, allocations: 376 kB / 324.5 MB, free: 15.84 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002317/0.1641, allocations: 158.8 kB / 324.7 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.1651, allocations: 0.8388 MB / 325.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-05/0.1652, allocations: 27.84 kB / 325.6 MB, free: 14.87 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004681/0.1657, allocations: 0.497 MB / 326.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.1666, allocations: 359.5 kB / 326.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003587/0.1702, allocations: 2.762 MB / 329.2 MB, free: 11.15 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.1705, allocations: 366.2 kB / 329.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005356/0.171, allocations: 213 kB / 329.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005444/0.1716, allocations: 371.2 kB / 330.1 MB, free: 10.19 MB / 282.7 MB Notification: Performance of SimCode: time 1.714e-06/0.1716, allocations: 0 / 330.1 MB, free: 10.19 MB / 282.7 MB Notification: Performance of Templates: time 0.02761/0.1992, allocations: 20.23 MB / 350.3 MB, free: 6.344 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.9874691972509027]