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.002075/0.002075, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.001467/0.001467, allocations: 149.4 kB / 24.26 MB, free: 184 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 1.416/1.416, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.753e-06/1.753e-06, allocations: 0 / 267.4 MB, free: 6.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.62e-05, allocations: 6.312 kB / 267.4 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1372/0.1373, allocations: 24.61 MB / 292 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0146/0.1519, allocations: 8.13 MB / 300.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004942/0.1568, allocations: 251.6 kB / 300.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0172/0.174, allocations: 8.052 MB / 308.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.1841, allocations: 2.892 MB / 311.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005072/0.1892, allocations: 1.836 MB / 313.1 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009707/0.1989, allocations: 10.36 MB / 323.5 MB, free: 1.824 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02493/0.2238, allocations: 13.91 MB / 337.4 MB, free: 3.773 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01522/0.239, allocations: 8.124 MB / 345.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0107/0.2497, allocations: 5.239 MB / 350.8 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003772/0.2535, allocations: 1.539 MB / 352.3 MB, free: 4.848 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006836/0.2603, allocations: 1.894 MB / 354.2 MB, free: 2.949 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005063/0.2654, allocations: 3.047 MB / 357.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008821/0.2742, allocations: 3.914 MB / 361.2 MB, free: 11.97 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02894/0.3032, allocations: 20.93 MB / 382.1 MB, free: 6.988 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3032, allocations: 0 / 382.1 MB, free: 6.988 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3032, allocations: 0 / 382.1 MB, free: 6.988 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004909/0.3037, allocations: 0 / 382.1 MB, free: 6.988 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.03581/0.3395, allocations: 11.88 MB / 394 MB, free: 11.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.3395, allocations: 12.92 kB / 394 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03461/0.3741, allocations: 7.123 MB / 401.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.3898, allocations: 6.641 MB / 407.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.391, allocations: 0.7028 MB / 408.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003884/0.3948, allocations: 0.9295 MB / 409.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04015/0.435, allocations: 15.22 MB / 424.6 MB, free: 12.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003315/0.4353, allocations: 19.91 kB / 424.6 MB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001804/0.4371, allocations: 384 kB / 425 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00065/0.4378, allocations: 0.5194 MB / 425.5 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2335/0.6713, allocations: 13.68 MB / 439.2 MB, free: 111.6 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06365/0.735, allocations: 42.44 MB / 481.6 MB, free: 85.83 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/0.7457, allocations: 8.017 MB / 489.7 MB, free: 79.07 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003366/0.7491, allocations: 2.796 MB / 492.4 MB, free: 76.27 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002514/0.7493, allocations: 97.97 kB / 492.5 MB, free: 76.18 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.7493, allocations: 77.58 kB / 492.6 MB, free: 76.09 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 7.554e-06/0.7494, allocations: 0 / 492.6 MB, free: 76.09 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.02427/0.7736, allocations: 14.77 MB / 0.4955 GB, free: 61.69 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.7737, allocations: 90.48 kB / 0.4956 GB, free: 61.59 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/0.7777, allocations: 3.555 MB / 0.4991 GB, free: 58.13 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003596/0.778, allocations: 93.7 kB / 0.4991 GB, free: 58.04 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/0.7794, allocations: 4.171 MB / 0.5032 GB, free: 53.99 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008169/0.7803, allocations: 1.393 MB / 0.5046 GB, free: 52.61 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001284/0.7815, allocations: 1.152 MB / 0.5057 GB, free: 51.45 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.629e-05/0.7816, allocations: 301.1 kB / 0.506 GB, free: 51.15 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0029/0.7845, allocations: 2.592 MB / 0.5085 GB, free: 48.55 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003684/0.7882, allocations: 5.104 MB / 0.5135 GB, free: 42.27 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007173/0.7953, allocations: 8.344 MB / 0.5217 GB, free: 32.74 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.68e-05/0.7954, allocations: 24 kB / 0.5217 GB, free: 32.71 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01172/0.8071, allocations: 8.895 MB / 0.5304 GB, free: 23.79 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.8071, allocations: 40 kB / 0.5304 GB, free: 23.75 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.675e-05/0.8072, allocations: 84 kB / 0.5305 GB, free: 23.67 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/0.8099, allocations: 0.9997 MB / 0.5315 GB, free: 22.66 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003999/0.8139, allocations: 1.377 MB / 0.5328 GB, free: 21.29 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008615/0.8225, allocations: 7.389 MB / 0.54 GB, free: 13.79 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003851/0.8264, allocations: 339.5 kB / 0.5403 GB, free: 13.46 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007556/0.8272, allocations: 311.9 kB / 0.5406 GB, free: 13.15 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.004558/0.8317, allocations: 3.505 MB / 0.5441 GB, free: 9.633 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/0.8329, allocations: 0.5247 MB / 0.5446 GB, free: 9.105 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008542/0.8414, allocations: 5.95 MB / 0.5504 GB, free: 3.117 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.8414, allocations: 40 kB / 0.5504 GB, free: 3.078 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.8414, allocations: 8 kB / 0.5504 GB, free: 3.07 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/0.8415, allocations: 23.92 kB / 0.5505 GB, free: 3.047 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02563/0.8671, allocations: 13.01 MB / 0.5632 GB, free: 5.992 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.932e-05/0.8671, allocations: 8 kB / 0.5632 GB, free: 5.984 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002933/0.8701, allocations: 0.691 MB / 0.5638 GB, free: 5.293 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002978/0.873, allocations: 0.8534 MB / 0.5647 GB, free: 4.438 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002862/0.8733, allocations: 87.92 kB / 0.5648 GB, free: 4.352 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/0.8844, allocations: 6.436 MB / 0.5711 GB, free: 13.82 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.8844, allocations: 7.938 kB / 0.5711 GB, free: 13.82 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01591/0.9003, allocations: 8.843 MB / 0.5797 GB, free: 4.844 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/0.9027, allocations: 0.829 MB / 0.5805 GB, free: 4.012 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005271/0.9032, allocations: 80.02 kB / 0.5806 GB, free: 3.934 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001862/0.9051, allocations: 179.8 kB / 0.5808 GB, free: 3.758 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007007/0.9058, allocations: 282.5 kB / 0.581 GB, free: 3.48 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/0.9061, allocations: 112 kB / 0.5811 GB, free: 3.371 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.004137/0.9102, allocations: 2.275 MB / 0.5833 GB, free: 1.105 MB / 410.8 MB Notification: Performance of sort global known variables: time 9e-08/0.9102, allocations: 0 / 0.5833 GB, free: 1.105 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.15/1.06, allocations: 1.546 MB / 0.5849 GB, free: 131.7 MB / 410.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.001166/1.061, allocations: 265.1 kB / 0.5851 GB, free: 131.6 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.01179/1.073, allocations: 6.26 MB / 0.5912 GB, free: 131 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/1.073, allocations: 1.125 kB / 0.5912 GB, free: 131 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005079/1.078, allocations: 2.713 MB / 0.5939 GB, free: 129.9 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005731/1.084, allocations: 0.92 MB / 0.5948 GB, free: 129.6 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02838/1.112, allocations: 16.22 MB / 0.6106 GB, free: 122.1 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007299/1.12, allocations: 5.509 MB / 0.616 GB, free: 120.4 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.005297/1.125, allocations: 1.868 MB / 0.6178 GB, free: 119.1 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.126, allocations: 338.2 kB / 0.6181 GB, free: 118.8 MB / 410.8 MB Notification: Performance of SimCode: time 1.994e-06/1.126, allocations: 0 / 0.6181 GB, free: 118.8 MB / 410.8 MB Notification: Performance of Templates: time 0.08643/1.212, allocations: 54.67 MB / 0.6715 GB, free: 67 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.353751626913436]