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.001451/0.001451, allocations: 82.17 kB / 21.42 MB, free: 3.078 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.00106/0.00106, allocations: 154.9 kB / 24.81 MB, free: 8.777 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.9338/0.9338, allocations: 173.4 MB / 201.4 MB, free: 9.215 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.252e-06/1.252e-06, allocations: 0 / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.311e-05/2.437e-05, allocations: 6.25 kB / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007359/0.007384, allocations: 8.729 MB / 277.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004299/0.01168, allocations: 3.077 MB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008122/0.0125, allocations: 51.69 kB / 280.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.01376, allocations: 0.656 MB / 280.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001586/0.01535, allocations: 0.7762 MB / 281.7 MB, free: 8.844 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005698/0.01592, allocations: 331.3 kB / 282 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.01781, allocations: 2.174 MB / 284.2 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009144/0.01873, allocations: 0.8087 MB / 285 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.02068, allocations: 1.52 MB / 286.5 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.02186, allocations: 0.9897 MB / 287.5 MB, free: 2.957 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003731/0.02223, allocations: 220 kB / 287.7 MB, free: 2.742 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005263/0.02276, allocations: 307.8 kB / 288 MB, free: 2.441 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004414/0.0232, allocations: 0.6777 MB / 288.7 MB, free: 1.762 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006317/0.02383, allocations: 0.7366 MB / 289.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1067/0.1305, allocations: 1.663 MB / 291.1 MB, free: 20.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1305, allocations: 4.172 kB / 291.1 MB, free: 20.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1305, allocations: 0.9062 kB / 291.1 MB, free: 20.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.19e-05/0.1306, allocations: 0 / 291.1 MB, free: 20.38 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.003588/0.1342, allocations: 2.289 MB / 293.4 MB, free: 19.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1342, allocations: 10.16 kB / 293.4 MB, free: 19.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007118/0.1349, allocations: 365.2 kB / 293.8 MB, free: 19.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.1365, allocations: 1.081 MB / 294.9 MB, free: 18.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.1366, allocations: 115.3 kB / 295 MB, free: 18.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.1368, allocations: 159.6 kB / 295.1 MB, free: 18.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.1385, allocations: 1.18 MB / 296.3 MB, free: 18.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.681e-05/0.1386, allocations: 5.734 kB / 296.3 MB, free: 18.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.1387, allocations: 68.41 kB / 296.4 MB, free: 18.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.749e-05/0.1388, allocations: 78.73 kB / 296.5 MB, free: 18.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008911/0.1397, allocations: 475.8 kB / 296.9 MB, free: 18.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005778/0.1454, allocations: 6.009 MB / 302.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.1458, allocations: 225 kB / 303.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.1459, allocations: 97.59 kB / 303.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.1461, allocations: 43.53 kB / 303.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.1461, allocations: 41.14 kB / 303.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 2.394e-06/0.1461, allocations: 0 / 303.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.003069/0.1492, allocations: 1.669 MB / 305 MB, free: 14.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001067/0.1503, allocations: 2.433 MB / 307.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.1514, allocations: 1.367 MB / 308.8 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.1514, allocations: 35.48 kB / 308.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003832/0.1518, allocations: 1.157 MB / 310 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1519, allocations: 252.6 kB / 310.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.1521, allocations: 337.8 kB / 310.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.06e-05/0.1521, allocations: 476.8 kB / 311 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.1524, allocations: 168.3 kB / 311.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005734/0.153, allocations: 1.555 MB / 312.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009729/0.1539, allocations: 1.896 MB / 314.6 MB, free: 6.781 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.1539, allocations: 11.25 kB / 314.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001471/0.1554, allocations: 1.433 MB / 316.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.1554, allocations: 19.12 kB / 316.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.8e-05/0.1555, allocations: 36.36 kB / 316.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002491/0.1557, allocations: 119.2 kB / 316.3 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/0.1563, allocations: 371.5 kB / 316.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005423/0.1569, allocations: 1.831 MB / 318.5 MB, free: 4.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.1576, allocations: 108.5 kB / 318.6 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.81e-05/0.1577, allocations: 82.75 kB / 318.6 MB, free: 4.539 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.0003269/0.158, allocations: 295.3 kB / 318.9 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.1582, allocations: 168.8 kB / 319.1 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006446/0.1588, allocations: 0.5757 MB / 319.7 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1588, allocations: 10.78 kB / 319.7 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1588, allocations: 0 / 319.7 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1588, allocations: 3.891 kB / 319.7 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.1612, allocations: 2.623 MB / 322.3 MB, free: 1.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1612, allocations: 4 kB / 322.3 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.1614, allocations: 98.8 kB / 322.4 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002624/0.1616, allocations: 145.9 kB / 322.5 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.1616, allocations: 19.98 kB / 322.6 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/0.1634, allocations: 4.036 MB / 326.6 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001146/0.1645, allocations: 2.374 MB / 329 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.1657, allocations: 1.024 MB / 330 MB, free: 9.672 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003289/0.166, allocations: 187 kB / 330.2 MB, free: 9.488 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.216e-05/0.1661, allocations: 23.98 kB / 330.2 MB, free: 9.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.1664, allocations: 27.98 kB / 330.2 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.693e-05/0.1665, allocations: 66.69 kB / 330.3 MB, free: 9.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.1665, allocations: 30.53 kB / 330.3 MB, free: 9.352 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006205/0.1671, allocations: 0.6857 MB / 331 MB, free: 8.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1671, allocations: 0 / 331 MB, free: 8.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001244/0.1684, allocations: 375.9 kB / 331.4 MB, free: 8.363 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.0002461/0.1686, allocations: 173.4 kB / 331.6 MB, free: 8.191 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.1697, allocations: 0.9335 MB / 332.5 MB, free: 7.297 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1697, allocations: 4.062 kB / 332.5 MB, free: 7.293 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004965/0.1702, allocations: 0.6241 MB / 333.1 MB, free: 6.637 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.1712, allocations: 359.3 kB / 333.5 MB, free: 6.301 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.1747, allocations: 2.876 MB / 336.3 MB, free: 3.301 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.1751, allocations: 418.2 kB / 336.7 MB, free: 2.871 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005269/0.1756, allocations: 205 kB / 336.9 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005715/0.1762, allocations: 426 kB / 337.4 MB, free: 2.246 MB / 282.7 MB Notification: Performance of SimCode: time 1.412e-06/0.1762, allocations: 0 / 337.4 MB, free: 2.246 MB / 282.7 MB Notification: Performance of Templates: time 0.02768/0.2039, allocations: 20.2 MB / 357.6 MB, free: 14.42 MB / 314.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: 3.125093537848443]