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.0009284/0.0009284, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.000894/0.000894, allocations: 147 kB / 24.89 MB, free: 8.781 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.9458/0.9458, allocations: 173.4 MB / 201.5 MB, free: 8.766 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.352e-06/1.352e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/2.063e-05, allocations: 2.312 kB / 268.5 MB, free: 5.984 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.00685/0.006871, allocations: 8.79 MB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003746/0.01062, allocations: 3.177 MB / 280.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004078/0.01102, allocations: 55.62 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00095/0.01197, allocations: 0.6677 MB / 281.2 MB, free: 9.234 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001033/0.01301, allocations: 0.7762 MB / 282 MB, free: 8.453 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.01338, allocations: 331.3 kB / 282.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.01465, allocations: 2.178 MB / 284.5 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007115/0.01537, allocations: 0.8322 MB / 285.3 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.01651, allocations: 1.505 MB / 286.8 MB, free: 3.535 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008091/0.01732, allocations: 0.9703 MB / 287.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001771/0.0175, allocations: 220 kB / 288 MB, free: 2.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003428/0.01784, allocations: 319.8 kB / 288.3 MB, free: 2.035 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003753/0.01822, allocations: 0.6777 MB / 289 MB, free: 1.355 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006227/0.01884, allocations: 0.7327 MB / 289.7 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.09686/0.1157, allocations: 1.671 MB / 291.4 MB, free: 20.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1157, allocations: 1.156 kB / 291.4 MB, free: 20.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1157, allocations: 0 / 291.4 MB, free: 20.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.604e-05/0.1158, allocations: 0 / 291.4 MB, free: 20.33 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.003107/0.1189, allocations: 2.068 MB / 293.5 MB, free: 19.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.1189, allocations: 9.578 kB / 293.5 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007251/0.1196, allocations: 291.1 kB / 293.8 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.1209, allocations: 0.8576 MB / 294.6 MB, free: 19.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-05/0.121, allocations: 117.6 kB / 294.7 MB, free: 19.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.1212, allocations: 156.4 kB / 294.9 MB, free: 19.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.1229, allocations: 1.186 MB / 296.1 MB, free: 18.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.634e-05/0.123, allocations: 7.375 kB / 296.1 MB, free: 18.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.1231, allocations: 66.03 kB / 296.1 MB, free: 18.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.287e-05/0.1232, allocations: 80.31 kB / 296.2 MB, free: 18.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.1241, allocations: 465.6 kB / 296.7 MB, free: 18.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005123/0.1292, allocations: 4.86 MB / 301.5 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.1296, allocations: 254 kB / 301.8 MB, free: 16.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.1297, allocations: 82.8 kB / 301.9 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.1298, allocations: 33.7 kB / 301.9 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.1298, allocations: 42.81 kB / 301.9 MB, free: 16.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.743e-06/0.1298, allocations: 1.469 kB / 301.9 MB, free: 16.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.003431/0.1333, allocations: 1.722 MB / 303.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009942/0.1343, allocations: 1.876 MB / 305.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008734/0.1351, allocations: 1.136 MB / 306.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1352, allocations: 38.73 kB / 306.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/0.1355, allocations: 0.9151 MB / 307.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.1356, allocations: 245.9 kB / 307.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.1358, allocations: 317.6 kB / 308.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 1.856e-05/0.1359, allocations: 305.1 kB / 308.5 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/0.1362, allocations: 191.1 kB / 308.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.1368, allocations: 1.12 MB / 309.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000989/0.1377, allocations: 1.485 MB / 311.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.1378, allocations: 10.66 kB / 311.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001481/0.1392, allocations: 1.213 MB / 312.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1393, allocations: 22.44 kB / 312.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.1393, allocations: 36.03 kB / 312.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.1395, allocations: 123.3 kB / 312.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008035/0.1403, allocations: 390.1 kB / 313.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005024/0.1408, allocations: 1.287 MB / 314.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007877/0.1416, allocations: 116.2 kB / 314.5 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/0.1417, allocations: 84.23 kB / 314.5 MB, free: 8.902 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.0002974/0.142, allocations: 247.8 kB / 314.8 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.1421, allocations: 105 kB / 314.9 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006881/0.1428, allocations: 0.5136 MB / 315.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1428, allocations: 6.625 kB / 315.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1428, allocations: 0 / 315.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1428, allocations: 3.844 kB / 315.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/0.1453, allocations: 2.155 MB / 317.6 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1453, allocations: 11.94 kB / 317.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002743/0.1456, allocations: 98.7 kB / 317.7 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003878/0.1459, allocations: 190.1 kB / 317.9 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.146, allocations: 20.19 kB / 317.9 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.1473, allocations: 2.952 MB / 320.8 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007722/0.1481, allocations: 1.813 MB / 322.6 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008288/0.1489, allocations: 0.8489 MB / 323.5 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002358/0.1491, allocations: 163 kB / 323.6 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.1493, allocations: 23.97 kB / 323.7 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003868/0.1496, allocations: 23.98 kB / 323.7 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.466e-05/0.1497, allocations: 67.06 kB / 323.8 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.1498, allocations: 27.98 kB / 323.8 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000439/0.1502, allocations: 0.52 MB / 324.3 MB, free: 96 kB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1502, allocations: 0 / 324.3 MB, free: 96 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.001258/0.1515, allocations: 376 kB / 324.7 MB, free: 15.72 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.0002396/0.1517, allocations: 155 kB / 324.8 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.1528, allocations: 0.8415 MB / 325.7 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.608e-05/0.1529, allocations: 31.84 kB / 325.7 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.1534, allocations: 0.489 MB / 326.2 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.1545, allocations: 363.5 kB / 326.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.1578, allocations: 2.762 MB / 329.3 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.1581, allocations: 366.2 kB / 329.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004186/0.1585, allocations: 213 kB / 329.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005168/0.159, allocations: 371.8 kB / 330.2 MB, free: 10.09 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.159, allocations: 4 kB / 330.2 MB, free: 10.09 MB / 282.7 MB Notification: Performance of Templates: time 0.02603/0.185, allocations: 20.22 MB / 350.5 MB, free: 6.246 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 -s gbode -gbm=radauIIA3 -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.927858430892229]