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.0009594/0.0009594, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009097/0.0009097, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9398/0.9398, allocations: 173.4 MB / 202.2 MB, free: 8.281 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.473e-06/1.473e-06, allocations: 0 / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.103e-05, allocations: 5.266 kB / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.008483/0.008504, allocations: 8.725 MB / 277.9 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004142/0.01265, allocations: 3.074 MB / 281 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005859/0.01323, allocations: 55.62 kB / 281.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.01431, allocations: 0.6599 MB / 281.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.0155, allocations: 0.7761 MB / 282.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.01592, allocations: 327.4 kB / 282.8 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001408/0.01732, allocations: 2.174 MB / 285 MB, free: 9.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007595/0.01808, allocations: 0.8086 MB / 285.8 MB, free: 9.082 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.01942, allocations: 1.512 MB / 287.3 MB, free: 7.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009023/0.02032, allocations: 0.9858 MB / 288.3 MB, free: 6.578 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002159/0.02054, allocations: 220 kB / 288.5 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003696/0.02091, allocations: 315.8 kB / 288.8 MB, free: 6.055 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003954/0.0213, allocations: 0.6816 MB / 289.5 MB, free: 5.371 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005342/0.02184, allocations: 0.7327 MB / 290.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.02315, allocations: 1.67 MB / 291.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.02315, allocations: 0 / 291.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.02316, allocations: 0 / 291.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.905e-05/0.02317, allocations: 0 / 291.9 MB, free: 2.961 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.002326/0.0255, allocations: 2.293 MB / 294.2 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.02554, allocations: 8.031 kB / 294.2 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005167/0.02605, allocations: 371.5 kB / 294.6 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.0272, allocations: 1.081 MB / 295.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.56e-05/0.02727, allocations: 123.4 kB / 295.8 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.02742, allocations: 148.4 kB / 295.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.02867, allocations: 1.18 MB / 297.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.02871, allocations: 11.94 kB / 297.1 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.863e-05/0.02879, allocations: 63.98 kB / 297.2 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-05/0.02886, allocations: 78.92 kB / 297.2 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006504/0.02951, allocations: 475.7 kB / 297.7 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004992/0.0345, allocations: 6.012 MB / 303.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.03485, allocations: 220.3 kB / 303.9 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.03495, allocations: 97.12 kB / 304 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.03506, allocations: 40.47 kB / 304.1 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.03509, allocations: 45.83 kB / 304.1 MB, free: 6.203 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 1.953e-06/0.03509, allocations: 0 / 304.1 MB, free: 6.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.002859/0.03795, allocations: 1.658 MB / 305.8 MB, free: 4.504 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001402/0.03935, allocations: 2.438 MB / 308.2 MB, free: 1.926 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.04041, allocations: 1.372 MB / 309.6 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.04044, allocations: 37.7 kB / 309.6 MB, free: 492 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005766/0.04102, allocations: 1.148 MB / 310.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.04118, allocations: 257.9 kB / 311 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002876/0.04146, allocations: 336.9 kB / 311.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.04156, allocations: 476.8 kB / 311.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.04182, allocations: 163.9 kB / 312 MB, free: 14.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008866/0.04271, allocations: 1.556 MB / 313.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.04417, allocations: 1.899 MB / 315.4 MB, free: 9.363 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/0.04419, allocations: 12 kB / 315.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001615/0.0458, allocations: 1.43 MB / 316.9 MB, free: 7.898 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.04583, allocations: 20 kB / 316.9 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.04585, allocations: 32 kB / 316.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002125/0.04606, allocations: 123 kB / 317 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006295/0.04669, allocations: 379.6 kB / 317.4 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.04771, allocations: 1.818 MB / 319.2 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006691/0.04838, allocations: 115.7 kB / 319.4 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.328e-05/0.04845, allocations: 80 kB / 319.4 MB, free: 5.215 MB / 298.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.0003145/0.04876, allocations: 291.6 kB / 319.7 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.04894, allocations: 171 kB / 319.9 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007278/0.04966, allocations: 0.5802 MB / 320.5 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.04967, allocations: 12 kB / 320.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.04967, allocations: 0 / 320.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.04968, allocations: 3.984 kB / 320.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.05247, allocations: 2.616 MB / 323.1 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.05247, allocations: 4 kB / 323.1 MB, free: 1.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.05269, allocations: 100.5 kB / 323.2 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000301/0.05299, allocations: 146.8 kB / 323.3 MB, free: 1.078 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.05302, allocations: 16 kB / 323.4 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/0.05519, allocations: 4.052 MB / 327.4 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001094/0.05628, allocations: 2.363 MB / 329.8 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009762/0.05726, allocations: 1.026 MB / 330.8 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002689/0.05753, allocations: 194.9 kB / 331 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.862e-05/0.05762, allocations: 16 kB / 331 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.05792, allocations: 35.98 kB / 331 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.605e-05/0.058, allocations: 63.81 kB / 331.1 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.05803, allocations: 23.98 kB / 331.1 MB, free: 8.809 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005376/0.05857, allocations: 0.6878 MB / 331.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.05857, allocations: 0 / 331.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001042/0.05961, allocations: 371.9 kB / 332.2 MB, free: 7.758 MB / 314.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.0002484/0.05986, allocations: 185.2 kB / 332.4 MB, free: 7.566 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.06112, allocations: 0.9381 MB / 333.3 MB, free: 6.613 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.06112, allocations: 3.938 kB / 333.3 MB, free: 6.609 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004719/0.06159, allocations: 0.6221 MB / 333.9 MB, free: 5.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009114/0.0625, allocations: 359.6 kB / 334.3 MB, free: 5.598 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.06554, allocations: 2.856 MB / 337.1 MB, free: 2.586 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.06583, allocations: 418.1 kB / 337.5 MB, free: 2.148 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004473/0.06628, allocations: 205 kB / 337.7 MB, free: 1.941 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005309/0.06681, allocations: 426 kB / 338.1 MB, free: 1.523 MB / 314.7 MB Notification: Performance of SimCode: time 8.81e-07/0.06681, allocations: 0 / 338.1 MB, free: 1.523 MB / 314.7 MB Notification: Performance of Templates: time 0.128/0.1949, allocations: 20.54 MB / 358.7 MB, free: 83.96 MB / 330.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.182636687066406]