Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.0009801/0.0009801, allocations: 84.81 kB / 22.37 MB, free: 2.082 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.0009424/0.0009424, allocations: 164.9 kB / 25.79 MB, free: 8.676 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7916/0.7916, allocations: 158.6 MB / 187.7 MB, free: 2.754 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 251.8 MB, free: 7.094 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.21e-05/1.337e-05, allocations: 6.312 kB / 251.8 MB, free: 7.086 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02499/0.025, allocations: 27.42 MB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01499/0.04, allocations: 8.869 MB / 288.1 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002285/0.04228, allocations: 222.9 kB / 288.3 MB, free: 2.422 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009965/0.05225, allocations: 8.667 MB / 297 MB, free: 9.715 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005027/0.05727, allocations: 3.138 MB / 300.1 MB, free: 6.559 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.06024, allocations: 1.924 MB / 302 MB, free: 4.633 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008402/0.06864, allocations: 10.93 MB / 312.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01556/0.0842, allocations: 14.47 MB / 327.4 MB, free: 11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009316/0.09352, allocations: 8.604 MB / 336 MB, free: 2.387 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006668/0.1002, allocations: 6.304 MB / 342.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001677/0.1019, allocations: 1.574 MB / 343.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.1039, allocations: 1.952 MB / 345.8 MB, free: 8.539 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001667/0.1055, allocations: 3.3 MB / 349.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003653/0.1092, allocations: 4.136 MB / 353.3 MB, free: 1.086 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1211/0.2303, allocations: 10.32 MB / 363.6 MB, free: 45.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2303, allocations: 0 / 363.6 MB, free: 45.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2303, allocations: 1.031 kB / 363.6 MB, free: 45.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001624/0.2304, allocations: 0 / 363.6 MB, free: 45.09 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.01221/0.2426, allocations: 12.03 MB / 375.6 MB, free: 41.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2427, allocations: 10.12 kB / 375.6 MB, free: 41.65 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01913/0.2618, allocations: 8.186 MB / 383.8 MB, free: 41.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005126/0.2669, allocations: 2.944 MB / 386.8 MB, free: 40.6 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002734/0.2672, allocations: 0.7402 MB / 387.5 MB, free: 40.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009343/0.2681, allocations: 0.9827 MB / 388.5 MB, free: 40.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008251/0.2764, allocations: 8.281 MB / 396.8 MB, free: 36.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/0.2765, allocations: 19.81 kB / 396.8 MB, free: 36.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006264/0.2772, allocations: 413.3 kB / 397.2 MB, free: 35.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002681/0.2774, allocations: 0.6064 MB / 397.8 MB, free: 35.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005295/0.2827, allocations: 4.426 MB / 402.2 MB, free: 30.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02524/0.308, allocations: 31.04 MB / 433.3 MB, free: 0.668 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007898/0.3159, allocations: 7.03 MB / 440.3 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.3171, allocations: 1.177 MB / 441.5 MB, free: 8.688 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006586/0.3237, allocations: 4.377 MB / 445.9 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.3237, allocations: 63.42 kB / 445.9 MB, free: 4.418 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 3.937e-06/0.3237, allocations: 0 / 445.9 MB, free: 4.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.0105/0.3342, allocations: 5.781 MB / 451.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.3343, allocations: 81.59 kB / 451.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/0.3367, allocations: 2.851 MB / 454.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.3368, allocations: 73.7 kB / 454.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.3384, allocations: 4.455 MB / 459.2 MB, free: 7.895 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005032/0.339, allocations: 1.03 MB / 460.2 MB, free: 6.922 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.34, allocations: 1.145 MB / 461.3 MB, free: 5.887 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003324/0.3403, allocations: 301.1 kB / 461.6 MB, free: 5.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007122/0.341, allocations: 0.5468 MB / 462.2 MB, free: 5.039 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.3431, allocations: 3.765 MB / 465.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.3469, allocations: 5.144 MB / 471.1 MB, free: 9.824 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.253e-05/0.3469, allocations: 36 kB / 471.1 MB, free: 9.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.004947/0.3519, allocations: 4.216 MB / 475.3 MB, free: 6.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/0.3519, allocations: 56 kB / 475.4 MB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.556e-05/0.352, allocations: 112 kB / 475.5 MB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.3534, allocations: 0.75 MB / 476.2 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002297/0.3557, allocations: 1.366 MB / 477.6 MB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003821/0.3595, allocations: 3.725 MB / 481.3 MB, free: 428 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.3616, allocations: 267.7 kB / 481.6 MB, free: 160 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004328/0.362, allocations: 288 kB / 481.9 MB, free: 15.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001689/0.3637, allocations: 0.5669 MB / 482.4 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004428/0.3642, allocations: 319.6 kB / 482.8 MB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002728/0.3669, allocations: 2.178 MB / 484.9 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.3669, allocations: 28 kB / 485 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3669, allocations: 8 kB / 485 MB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.3669, allocations: 11.95 kB / 485 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00612/0.373, allocations: 4.54 MB / 489.5 MB, free: 8.844 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.373, allocations: 7.094 kB / 489.5 MB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.3743, allocations: 464.7 kB / 490 MB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.3754, allocations: 0.597 MB / 490.6 MB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.3755, allocations: 63.97 kB / 490.6 MB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002957/0.3785, allocations: 3.327 MB / 494 MB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3785, allocations: 8 kB / 494 MB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002893/0.3814, allocations: 2.532 MB / 496.5 MB, free: 1.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006617/0.382, allocations: 453.2 kB / 497 MB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.3823, allocations: 52 kB / 497 MB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.3832, allocations: 84.02 kB / 497.1 MB, free: 1.246 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.3834, allocations: 205.6 kB / 497.3 MB, free: 1.047 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.3835, allocations: 59.97 kB / 497.3 MB, free: 0.9883 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.1242/0.5078, allocations: 1.248 MB / 498.6 MB, free: 106.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5078, allocations: 0.75 kB / 498.6 MB, free: 106.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005517/0.5133, allocations: 1.542 MB / 0.4884 GB, free: 106.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003725/0.5136, allocations: 215.2 kB / 0.4886 GB, free: 106.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00406/0.5177, allocations: 3.023 MB / 0.4916 GB, free: 106.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001705/0.5179, allocations: 72.19 kB / 0.4916 GB, free: 106.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001501/0.5194, allocations: 1.236 MB / 0.4928 GB, free: 106 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.5218, allocations: 0.8965 MB / 0.4937 GB, free: 106 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/0.54, allocations: 13.82 MB / 0.5072 GB, free: 100.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001738/0.5418, allocations: 1.851 MB / 0.509 GB, free: 100.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002154/0.5439, allocations: 0.6926 MB / 0.5097 GB, free: 100.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/0.5454, allocations: 0.8583 MB / 0.5105 GB, free: 100.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5454, allocations: 0 / 0.5105 GB, free: 100.3 MB / 394.7 MB Notification: Performance of Templates: time 0.06717/0.6126, allocations: 55.27 MB / 0.5645 GB, free: 52.5 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.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.968877443112433]