Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001907/0.001907, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 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.002392/0.002392, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 43.94 kB / 373.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1033, allocations: 53.33 MB / 426.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2178/0.3211, allocations: 28.74 MB / 455.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02113/0.3422, allocations: 8.507 MB / 464.1 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006841/0.3491, allocations: 256.2 kB / 464.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02128/0.3703, allocations: 8.275 MB / 472.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01039/0.3807, allocations: 2.848 MB / 475.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005775/0.3865, allocations: 1.893 MB / 477.4 MB, free: 9.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01455/0.401, allocations: 10.01 MB / 487.4 MB, free: 3.738 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03144/0.4325, allocations: 16.34 MB / 0.4919 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009258/0.4417, allocations: 5.474 MB / 0.4972 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01032/0.4521, allocations: 6.124 MB / 0.5032 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003921/0.456, allocations: 1.543 MB / 0.5047 GB, free: 6.461 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00596/0.4619, allocations: 1.914 MB / 0.5066 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004761/0.4667, allocations: 3 MB / 0.5095 GB, free: 1.539 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01104/0.4777, allocations: 5.845 MB / 0.5152 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02825/0.506, allocations: 20.69 MB / 0.5354 GB, free: 6.918 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.506, allocations: 4 kB / 0.5354 GB, free: 6.914 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.506, allocations: 0 / 0.5354 GB, free: 6.914 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006699/0.5067, allocations: 0 / 0.5354 GB, free: 6.914 MB / 446.1 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.04054/0.5472, allocations: 12.09 MB / 0.5473 GB, free: 10.71 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.5473, allocations: 8.031 kB / 0.5473 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03457/0.5818, allocations: 5.601 MB / 0.5527 GB, free: 5.094 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01479/0.5966, allocations: 6.334 MB / 0.5589 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008861/0.5975, allocations: 0.7062 MB / 0.5596 GB, free: 14 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004499/0.602, allocations: 0.9256 MB / 0.5605 GB, free: 13.07 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05176/0.6538, allocations: 15.1 MB / 0.5753 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004967/0.6543, allocations: 7.953 kB / 0.5753 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003888/0.6581, allocations: 396 kB / 0.5756 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009281/0.6591, allocations: 0.5155 MB / 0.5761 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04736/0.7064, allocations: 13.78 MB / 0.5896 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5163/1.223, allocations: 47.64 MB / 0.6361 GB, free: 127.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01728/1.24, allocations: 28.23 MB / 0.6637 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00432/1.244, allocations: 2.803 MB / 0.6664 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003485/1.245, allocations: 343.9 kB / 0.6668 GB, free: 102.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/1.245, allocations: 75.64 kB / 0.6668 GB, free: 102.1 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 5.179e-06/1.245, allocations: 0 / 0.6668 GB, free: 102.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.02852/1.273, allocations: 14.91 MB / 0.6814 GB, free: 97.19 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/1.273, allocations: 97.64 kB / 0.6815 GB, free: 97.12 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004923/1.278, allocations: 3.602 MB / 0.685 GB, free: 95.83 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006267/1.279, allocations: 89.33 kB / 0.6851 GB, free: 95.75 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002025/1.281, allocations: 4.198 MB / 0.6892 GB, free: 93.09 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001095/1.282, allocations: 1.404 MB / 0.6906 GB, free: 92 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001399/1.283, allocations: 1.18 MB / 0.6917 GB, free: 91.43 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.295e-05/1.283, allocations: 301.1 kB / 0.692 GB, free: 91.13 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003546/1.287, allocations: 2.594 MB / 0.6945 GB, free: 90.17 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003871/1.291, allocations: 5.086 MB / 0.6995 GB, free: 85.54 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007443/1.298, allocations: 8.356 MB / 0.7077 GB, free: 78.87 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.993e-05/1.298, allocations: 26.72 kB / 0.7077 GB, free: 78.86 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01215/1.31, allocations: 8.656 MB / 0.7161 GB, free: 74.28 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.806e-05/1.311, allocations: 44.34 kB / 0.7162 GB, free: 74.28 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.341e-05/1.311, allocations: 83.22 kB / 0.7163 GB, free: 74.28 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002306/1.313, allocations: 0.8472 MB / 0.7171 GB, free: 73.67 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004185/1.317, allocations: 1.369 MB / 0.7184 GB, free: 72.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009093/1.326, allocations: 7.683 MB / 0.7259 GB, free: 64.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004073/1.33, allocations: 327.5 kB / 0.7262 GB, free: 64.16 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008348/1.331, allocations: 308 kB / 0.7265 GB, free: 63.86 MB / 0.5138 GB 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.004948/1.336, allocations: 3.519 MB / 0.73 GB, free: 60.32 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/1.337, allocations: 437.3 kB / 0.7304 GB, free: 59.89 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009664/1.347, allocations: 5.956 MB / 0.7362 GB, free: 53.91 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/1.347, allocations: 40 kB / 0.7362 GB, free: 53.87 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/1.347, allocations: 8 kB / 0.7363 GB, free: 53.86 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.595e-05/1.347, allocations: 23.92 kB / 0.7363 GB, free: 53.84 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/1.373, allocations: 14.96 MB / 0.7509 GB, free: 38.83 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/1.373, allocations: 4.625 kB / 0.7509 GB, free: 38.83 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002808/1.376, allocations: 0.7021 MB / 0.7516 GB, free: 38.12 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00205/1.378, allocations: 0.7053 MB / 0.7523 GB, free: 37.42 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004121/1.379, allocations: 95.97 kB / 0.7524 GB, free: 37.32 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007962/1.387, allocations: 6.713 MB / 0.7589 GB, free: 30.48 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.387, allocations: 4 kB / 0.7589 GB, free: 30.48 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/1.399, allocations: 8.765 MB / 0.7675 GB, free: 21.59 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.401, allocations: 0.912 MB / 0.7684 GB, free: 20.65 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008714/1.402, allocations: 72 kB / 0.7684 GB, free: 20.58 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002461/1.404, allocations: 191.8 kB / 0.7686 GB, free: 20.39 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005587/1.405, allocations: 266.7 kB / 0.7689 GB, free: 20.13 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002788/1.405, allocations: 121.5 kB / 0.769 GB, free: 20.02 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004156/1.409, allocations: 2.416 MB / 0.7713 GB, free: 17.61 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8e-08/1.409, allocations: 0 / 0.7713 GB, free: 17.61 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005698/1.415, allocations: 1.551 MB / 0.7729 GB, free: 16.06 MB / 0.5138 GB 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.00062/1.415, allocations: 265.8 kB / 0.7731 GB, free: 15.8 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00924/1.425, allocations: 6.284 MB / 0.7792 GB, free: 9.512 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/1.425, allocations: 0 / 0.7792 GB, free: 9.512 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004466/1.429, allocations: 2.737 MB / 0.7819 GB, free: 6.766 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006066/1.435, allocations: 0.9634 MB / 0.7829 GB, free: 5.84 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03053/1.466, allocations: 15.88 MB / 0.7984 GB, free: 5.844 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009783/1.475, allocations: 5.975 MB / 0.8042 GB, free: 15.82 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006003/1.481, allocations: 1.881 MB / 0.806 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/1.483, allocations: 359.3 kB / 0.8064 GB, free: 13.58 MB / 0.545 GB Notification: Performance of SimCode: time 1.193e-06/1.483, allocations: 0 / 0.8064 GB, free: 13.58 MB / 0.545 GB Notification: Performance of Templates: time 0.3129/1.796, allocations: 61.48 MB / 0.8664 GB, free: 174.6 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.319564431905746]