Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 91.5 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9211/0.9211, allocations: 177 MB / 204.8 MB, free: 5.254 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 273 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.632e-05/2.812e-05, allocations: 2.312 kB / 273 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1331/0.1331, allocations: 28.08 MB / 301 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.1473, allocations: 8.409 MB / 309.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00509/0.1524, allocations: 256.6 kB / 309.7 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009664/0.162, allocations: 8.734 MB / 318.4 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007439/0.1695, allocations: 2.921 MB / 321.4 MB, free: 1.387 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003837/0.1733, allocations: 1.901 MB / 323.3 MB, free: 15.92 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.1844, allocations: 10.44 MB / 333.7 MB, free: 5.746 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02032/0.2048, allocations: 13.92 MB / 347.6 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01358/0.2183, allocations: 8.241 MB / 355.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008516/0.2269, allocations: 5.903 MB / 361.8 MB, free: 9.516 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003547/0.2304, allocations: 1.539 MB / 363.3 MB, free: 7.977 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005176/0.2356, allocations: 1.913 MB / 365.2 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003423/0.239, allocations: 3.078 MB / 368.3 MB, free: 2.977 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007448/0.2464, allocations: 3.957 MB / 372.2 MB, free: 15.01 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01336/0.2598, allocations: 9.906 MB / 382.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2598, allocations: 0 / 382.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.2598, allocations: 0 / 382.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004284/0.2602, allocations: 0 / 382.2 MB, free: 5.078 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.02379/0.284, allocations: 12.78 MB / 394.9 MB, free: 8.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.2841, allocations: 12.03 kB / 394.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01912/0.3032, allocations: 7.042 MB / 402 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009256/0.3125, allocations: 6.039 MB / 408 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005368/0.313, allocations: 0.6988 MB / 408.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002646/0.3156, allocations: 0.9373 MB / 409.7 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.3364, allocations: 8.159 MB / 417.8 MB, free: 1.102 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/0.3366, allocations: 15.94 kB / 417.8 MB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001484/0.3381, allocations: 392 kB / 418.2 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003681/0.3385, allocations: 0.5155 MB / 418.7 MB, free: 188 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.3536, allocations: 4.395 MB / 423.1 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2974/0.651, allocations: 38.65 MB / 461.8 MB, free: 70.85 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006162/0.6571, allocations: 6.885 MB / 468.7 MB, free: 70.57 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.6586, allocations: 1.365 MB / 470 MB, free: 70.48 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001752/0.6587, allocations: 124.3 kB / 470.2 MB, free: 70.46 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.6588, allocations: 73.69 kB / 470.2 MB, free: 70.39 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 5.44e-06/0.6588, allocations: 3.984 kB / 470.2 MB, free: 70.39 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.01217/0.6709, allocations: 8.797 MB / 479 MB, free: 67.39 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.671, allocations: 99.22 kB / 479.1 MB, free: 67.32 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.6735, allocations: 3.406 MB / 482.5 MB, free: 64.69 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.6737, allocations: 89.7 kB / 482.6 MB, free: 64.6 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.675, allocations: 4.417 MB / 487 MB, free: 60.84 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005388/0.6755, allocations: 1.434 MB / 488.5 MB, free: 59.45 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/0.6765, allocations: 1.312 MB / 489.8 MB, free: 58.12 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.2e-05/0.6766, allocations: 479.8 kB / 490.2 MB, free: 57.65 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.6777, allocations: 0.8354 MB / 491.1 MB, free: 56.81 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.6798, allocations: 4.584 MB / 495.7 MB, free: 50.64 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003791/0.6836, allocations: 6.03 MB / 0.4899 GB, free: 43.34 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-05/0.6836, allocations: 24.77 kB / 0.49 GB, free: 43.32 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.00555/0.6892, allocations: 5.283 MB / 0.4951 GB, free: 38.56 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/0.6892, allocations: 42.97 kB / 0.4952 GB, free: 38.52 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.136e-05/0.6893, allocations: 84 kB / 0.4952 GB, free: 38.44 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/0.6908, allocations: 0.8025 MB / 0.496 GB, free: 37.63 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002196/0.6929, allocations: 1.362 MB / 0.4974 GB, free: 36.37 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004302/0.6972, allocations: 5.078 MB / 0.5023 GB, free: 31.23 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/0.6988, allocations: 323.6 kB / 0.5026 GB, free: 30.91 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.699, allocations: 308 kB / 0.5029 GB, free: 30.61 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.001299/0.7003, allocations: 0.5694 MB / 0.5035 GB, free: 30.13 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004931/0.7008, allocations: 0.5209 MB / 0.504 GB, free: 29.61 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003902/0.7047, allocations: 3.376 MB / 0.5073 GB, free: 26.22 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.7047, allocations: 40 kB / 0.5073 GB, free: 26.18 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.7047, allocations: 11.66 kB / 0.5073 GB, free: 26.17 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/0.7048, allocations: 19.92 kB / 0.5073 GB, free: 26.15 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.7157, allocations: 10.77 MB / 0.5179 GB, free: 15.42 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/0.7157, allocations: 12.12 kB / 0.5179 GB, free: 15.41 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.717, allocations: 0.6958 MB / 0.5186 GB, free: 14.75 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.7182, allocations: 0.6636 MB / 0.5192 GB, free: 14.09 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/0.7184, allocations: 87.98 kB / 0.5193 GB, free: 14 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003766/0.7221, allocations: 4.536 MB / 0.5237 GB, free: 9.375 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7221, allocations: 7.844 kB / 0.5237 GB, free: 9.371 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004606/0.7268, allocations: 4.342 MB / 0.528 GB, free: 4.902 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008184/0.7276, allocations: 0.7587 MB / 0.5287 GB, free: 4.141 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.7278, allocations: 75.94 kB / 0.5288 GB, free: 4.066 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008306/0.7287, allocations: 179.8 kB / 0.5289 GB, free: 3.891 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.7289, allocations: 282.4 kB / 0.5292 GB, free: 3.617 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.7291, allocations: 124 kB / 0.5293 GB, free: 3.496 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001357/0.7304, allocations: 1.537 MB / 0.5308 GB, free: 1.969 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.7304, allocations: 0 / 0.5308 GB, free: 1.969 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.002942/0.7334, allocations: 1.543 MB / 0.5323 GB, free: 436 kB / 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.0003696/0.7337, allocations: 268.5 kB / 0.5326 GB, free: 204 kB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.004606/0.7384, allocations: 3.881 MB / 0.5364 GB, free: 12.55 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.7384, allocations: 4 kB / 0.5364 GB, free: 12.54 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.7404, allocations: 1.871 MB / 0.5382 GB, free: 10.73 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.7426, allocations: 0.9163 MB / 0.5391 GB, free: 9.859 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/0.7574, allocations: 13.4 MB / 0.5522 GB, free: 12.27 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00168/0.7591, allocations: 2.479 MB / 0.5546 GB, free: 9.754 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.002382/0.7615, allocations: 1.594 MB / 0.5562 GB, free: 8.152 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006441/0.7621, allocations: 348.4 kB / 0.5565 GB, free: 7.812 MB / 410.8 MB Notification: Performance of SimCode: time 2.755e-06/0.7621, allocations: 0 / 0.5565 GB, free: 7.812 MB / 410.8 MB Notification: Performance of Templates: time 0.1904/0.9525, allocations: 57.49 MB / 0.6127 GB, free: 112.8 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7384226359426975]