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.000991/0.000991, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.0009685/0.0009685, allocations: 168.7 kB / 25.7 MB, free: 8.441 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.8533/0.8533, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.423e-06/1.423e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.107e-05, allocations: 2.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02911/0.02913, allocations: 27.38 MB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.04571, allocations: 8.872 MB / 287.8 MB, free: 2.809 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003903/0.04962, allocations: 218.9 kB / 288 MB, free: 2.594 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009085/0.0587, allocations: 8.737 MB / 296.8 MB, free: 9.816 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005929/0.06463, allocations: 3.162 MB / 299.9 MB, free: 6.629 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002671/0.0673, allocations: 1.932 MB / 301.9 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007996/0.0753, allocations: 10.94 MB / 312.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01327/0.08857, allocations: 14.47 MB / 327.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007736/0.0963, allocations: 8.615 MB / 335.9 MB, free: 2.422 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005511/0.1018, allocations: 6.304 MB / 342.2 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001611/0.1034, allocations: 1.574 MB / 343.8 MB, free: 10.53 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002103/0.1055, allocations: 1.929 MB / 345.7 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001733/0.1073, allocations: 3.292 MB / 349 MB, free: 5.297 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003436/0.1107, allocations: 4.136 MB / 353.1 MB, free: 1.152 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.123/0.2337, allocations: 10.33 MB / 363.5 MB, free: 45.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2337, allocations: 0 / 363.5 MB, free: 45.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2337, allocations: 0 / 363.5 MB, free: 45.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003477/0.2341, allocations: 2.125 kB / 363.5 MB, free: 45.14 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.01364/0.2477, allocations: 12.03 MB / 375.5 MB, free: 41.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.2478, allocations: 13.62 kB / 375.5 MB, free: 41.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02058/0.2683, allocations: 8.182 MB / 383.7 MB, free: 41.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005721/0.2741, allocations: 2.948 MB / 386.6 MB, free: 40.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.2743, allocations: 0.7423 MB / 387.4 MB, free: 40.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001135/0.2755, allocations: 0.9799 MB / 388.4 MB, free: 40.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008754/0.2842, allocations: 8.284 MB / 396.6 MB, free: 36.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/0.2844, allocations: 15.19 kB / 396.7 MB, free: 36.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007039/0.2851, allocations: 410.8 kB / 397.1 MB, free: 35.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003163/0.2854, allocations: 0.6106 MB / 397.7 MB, free: 35.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00575/0.2912, allocations: 4.429 MB / 402.1 MB, free: 30.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03065/0.3218, allocations: 31.04 MB / 433.1 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007991/0.3298, allocations: 7.042 MB / 440.2 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.3311, allocations: 1.179 MB / 441.4 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006815/0.3379, allocations: 4.373 MB / 445.7 MB, free: 4.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/0.338, allocations: 64.69 kB / 445.8 MB, free: 4.621 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 4.228e-06/0.338, allocations: 0 / 445.8 MB, free: 4.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.01017/0.3481, allocations: 5.789 MB / 451.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.3482, allocations: 77.59 kB / 451.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002172/0.3504, allocations: 2.853 MB / 454.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.3505, allocations: 73.7 kB / 454.6 MB, free: 12.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.3522, allocations: 4.459 MB / 459 MB, free: 8.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005201/0.3527, allocations: 1.03 MB / 460.1 MB, free: 7.117 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00104/0.3537, allocations: 1.142 MB / 461.2 MB, free: 6.082 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.604e-05/0.3538, allocations: 301.1 kB / 461.5 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000773/0.3546, allocations: 0.5546 MB / 462.1 MB, free: 5.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00217/0.3567, allocations: 3.755 MB / 465.8 MB, free: 152 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003637/0.3604, allocations: 5.148 MB / 471 MB, free: 10.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.418e-05/0.3604, allocations: 32 kB / 471 MB, free: 9.992 MB / 378.7 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.004913/0.3653, allocations: 4.226 MB / 475.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.3654, allocations: 52 kB / 475.3 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.484e-05/0.3654, allocations: 112 kB / 475.4 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.3668, allocations: 0.7513 MB / 476.1 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002219/0.369, allocations: 1.29 MB / 477.4 MB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003873/0.3729, allocations: 3.698 MB / 481.1 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.375, allocations: 271.7 kB / 481.4 MB, free: 456 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002771/0.3752, allocations: 288 kB / 481.7 MB, free: 168 kB / 378.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.001744/0.377, allocations: 0.5644 MB / 482.2 MB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004914/0.3775, allocations: 326.6 kB / 482.6 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.3802, allocations: 2.175 MB / 484.7 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.3802, allocations: 36 kB / 484.8 MB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.3802, allocations: 8 kB / 484.8 MB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.3803, allocations: 15.94 kB / 484.8 MB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006647/0.3869, allocations: 4.534 MB / 489.3 MB, free: 9.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.3869, allocations: 4 kB / 489.3 MB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.3879, allocations: 428.2 kB / 489.7 MB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.3891, allocations: 0.609 MB / 490.4 MB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.3892, allocations: 55.98 kB / 490.4 MB, free: 8.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/0.3924, allocations: 3.302 MB / 493.7 MB, free: 4.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3924, allocations: 4 kB / 493.7 MB, free: 4.766 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003321/0.3957, allocations: 2.536 MB / 496.2 MB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007131/0.3964, allocations: 451.8 kB / 496.7 MB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.3967, allocations: 56 kB / 496.7 MB, free: 1.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/0.3974, allocations: 82.2 kB / 496.8 MB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.3977, allocations: 209.6 kB / 497 MB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.3978, allocations: 59.98 kB / 497.1 MB, free: 1.336 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001032/0.3988, allocations: 1.247 MB / 498.3 MB, free: 268 kB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3988, allocations: 0 / 498.3 MB, free: 268 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.1404/0.5392, allocations: 1.539 MB / 499.9 MB, free: 106.5 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.0005017/0.5397, allocations: 212.9 kB / 0.4884 GB, free: 106.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.5434, allocations: 3.029 MB / 0.4913 GB, free: 106.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001377/0.5435, allocations: 71.41 kB / 0.4914 GB, free: 106.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.5448, allocations: 1.226 MB / 0.4926 GB, free: 105.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002164/0.547, allocations: 0.8909 MB / 0.4935 GB, free: 105.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.562, allocations: 13.83 MB / 0.507 GB, free: 100.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.5634, allocations: 1.853 MB / 0.5088 GB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001851/0.5653, allocations: 0.6954 MB / 0.5094 GB, free: 100.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.5666, allocations: 0.8514 MB / 0.5103 GB, free: 100.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5666, allocations: 2.031 kB / 0.5103 GB, free: 100.2 MB / 394.7 MB Notification: Performance of Templates: time 0.07942/0.646, allocations: 55.28 MB / 0.5643 GB, free: 52.91 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: 4.15475621400401]