Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.001429/0.001429, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008992/0.0008992, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.8576/0.8576, allocations: 173.3 MB / 201.1 MB, free: 9.348 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.423e-05/1.556e-05, allocations: 9.906 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1238/0.1238, allocations: 28.05 MB / 296.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.1394, allocations: 8.318 MB / 304.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004869/0.1443, allocations: 253.1 kB / 304.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.1552, allocations: 8.753 MB / 313.4 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006512/0.1618, allocations: 2.912 MB / 316.3 MB, free: 7.492 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003043/0.1648, allocations: 1.878 MB / 318.2 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008204/0.173, allocations: 10.37 MB / 328.6 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01686/0.1899, allocations: 13.91 MB / 342.5 MB, free: 280 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007582/0.1974, allocations: 8.249 MB / 350.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005908/0.2034, allocations: 5.88 MB / 356.6 MB, free: 2.121 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001758/0.2051, allocations: 1.535 MB / 358.1 MB, free: 0.582 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002254/0.2074, allocations: 1.894 MB / 360 MB, free: 14.69 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001621/0.209, allocations: 3.082 MB / 363.1 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003447/0.2124, allocations: 3.949 MB / 367.1 MB, free: 7.641 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008458/0.2209, allocations: 9.878 MB / 376.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2209, allocations: 4 kB / 376.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2209, allocations: 0 / 376.9 MB, free: 13.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001352/0.221, allocations: 0 / 376.9 MB, free: 13.73 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.01627/0.2373, allocations: 12.75 MB / 389.7 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2374, allocations: 8.922 kB / 389.7 MB, free: 0.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01607/0.2534, allocations: 7.143 MB / 396.8 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007102/0.2605, allocations: 6.019 MB / 402.9 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003678/0.2609, allocations: 0.6989 MB / 403.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001143/0.262, allocations: 0.9373 MB / 404.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.2743, allocations: 8.136 MB / 412.6 MB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001407/0.2745, allocations: 7.953 kB / 412.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006165/0.2751, allocations: 392 kB / 413 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003327/0.2754, allocations: 0.5155 MB / 413.5 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008564/0.284, allocations: 4.364 MB / 417.9 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2526/0.5366, allocations: 38.6 MB / 456.5 MB, free: 70.18 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006749/0.5433, allocations: 6.854 MB / 463.4 MB, free: 69.91 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002138/0.5455, allocations: 1.37 MB / 464.7 MB, free: 69.87 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002409/0.5457, allocations: 100.2 kB / 464.8 MB, free: 69.86 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.5458, allocations: 78.31 kB / 464.9 MB, free: 69.82 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.911e-06/0.5458, allocations: 0 / 464.9 MB, free: 69.82 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01404/0.5598, allocations: 8.766 MB / 473.7 MB, free: 68.21 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.5599, allocations: 90.98 kB / 473.8 MB, free: 68.14 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003291/0.5632, allocations: 3.401 MB / 477.2 MB, free: 67.7 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.5634, allocations: 89.83 kB / 477.2 MB, free: 67.67 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001609/0.565, allocations: 4.42 MB / 481.7 MB, free: 65.87 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007178/0.5657, allocations: 1.439 MB / 483.1 MB, free: 64.98 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/0.5668, allocations: 1.295 MB / 484.4 MB, free: 64.86 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.5669, allocations: 476.8 kB / 484.9 MB, free: 64.39 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.5681, allocations: 0.8328 MB / 485.7 MB, free: 64.38 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002166/0.5703, allocations: 4.585 MB / 490.3 MB, free: 59.81 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003943/0.5742, allocations: 6.021 MB / 496.3 MB, free: 54.83 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.229e-05/0.5742, allocations: 24 kB / 496.3 MB, free: 54.8 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.006179/0.5804, allocations: 5.269 MB / 0.4898 GB, free: 51.41 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.5805, allocations: 40 kB / 0.4899 GB, free: 51.38 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.344e-05/0.5805, allocations: 87.66 kB / 0.49 GB, free: 51.29 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/0.582, allocations: 0.7973 MB / 0.4907 GB, free: 50.73 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002253/0.5843, allocations: 1.363 MB / 0.4921 GB, free: 49.63 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004459/0.5887, allocations: 5.068 MB / 0.497 GB, free: 45.03 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/0.591, allocations: 335.5 kB / 0.4973 GB, free: 44.7 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003449/0.5914, allocations: 300 kB / 0.4976 GB, free: 44.41 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001721/0.5931, allocations: 0.5678 MB / 0.4982 GB, free: 43.93 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006065/0.5937, allocations: 0.5247 MB / 0.4987 GB, free: 43.4 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005087/0.5988, allocations: 3.37 MB / 0.502 GB, free: 40.03 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-05/0.5988, allocations: 43.83 kB / 0.502 GB, free: 39.99 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.5988, allocations: 8 kB / 0.502 GB, free: 39.98 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/0.5989, allocations: 23.86 kB / 0.5021 GB, free: 39.96 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01947/0.6183, allocations: 10.76 MB / 0.5126 GB, free: 29.24 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.6184, allocations: 8 kB / 0.5126 GB, free: 29.23 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.62, allocations: 0.6879 MB / 0.5132 GB, free: 28.58 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.6218, allocations: 0.662 MB / 0.5139 GB, free: 27.91 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002789/0.6221, allocations: 91.97 kB / 0.514 GB, free: 27.82 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006054/0.6281, allocations: 4.529 MB / 0.5184 GB, free: 23.2 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.6281, allocations: 8 kB / 0.5184 GB, free: 23.19 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006249/0.6344, allocations: 4.324 MB / 0.5226 GB, free: 18.74 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.6354, allocations: 0.7532 MB / 0.5234 GB, free: 17.99 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.6357, allocations: 75.98 kB / 0.5234 GB, free: 17.91 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008315/0.6365, allocations: 187.8 kB / 0.5236 GB, free: 17.73 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.6368, allocations: 281.1 kB / 0.5239 GB, free: 17.46 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.6369, allocations: 112 kB / 0.524 GB, free: 17.35 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001551/0.6384, allocations: 1.536 MB / 0.5255 GB, free: 15.82 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.6384, allocations: 0 / 0.5255 GB, free: 15.82 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003144/0.6416, allocations: 1.539 MB / 0.527 GB, free: 14.29 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003445/0.6419, allocations: 263.2 kB / 0.5272 GB, free: 14.06 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004744/0.6467, allocations: 3.863 MB / 0.531 GB, free: 10.43 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6467, allocations: 4 kB / 0.531 GB, free: 10.43 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002274/0.649, allocations: 1.872 MB / 0.5329 GB, free: 8.609 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/0.6521, allocations: 0.9121 MB / 0.5337 GB, free: 7.746 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.6692, allocations: 13.44 MB / 0.5469 GB, free: 10.13 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.6716, allocations: 2.478 MB / 0.5493 GB, free: 7.609 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.003505/0.6751, allocations: 1.594 MB / 0.5508 GB, free: 6.008 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008389/0.6759, allocations: 343.6 kB / 0.5512 GB, free: 5.676 MB / 394.8 MB Notification: Performance of SimCode: time 1.503e-06/0.6759, allocations: 0 / 0.5512 GB, free: 5.676 MB / 394.8 MB Notification: Performance of Templates: time 0.2122/0.8882, allocations: 56.77 MB / 0.6066 GB, free: 126.8 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.331031037028879]