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.001317/0.001317, allocations: 74.33 kB / 21.24 MB, free: 0.5469 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.001357/0.001357, allocations: 159.4 kB / 24.5 MB, free: 3.719 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.399/1.399, allocations: 177.2 MB / 204.9 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 179] 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.001568/0.001568, allocations: 48.17 kB / 325.6 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.08676, allocations: 53.34 MB / 378.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02969/0.1165, allocations: 24.62 MB / 403.6 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.1319, allocations: 8.178 MB / 411.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002351/0.1342, allocations: 254.7 kB / 412 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01825/0.1525, allocations: 8.037 MB / 420 MB, free: 6.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007545/0.16, allocations: 2.84 MB / 422.9 MB, free: 3.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004292/0.1643, allocations: 1.856 MB / 424.7 MB, free: 1.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.1758, allocations: 10.1 MB / 434.8 MB, free: 7.543 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01953/0.1953, allocations: 13.87 MB / 448.7 MB, free: 9.539 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006784/0.2021, allocations: 5.498 MB / 454.2 MB, free: 4.027 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008582/0.2107, allocations: 5.866 MB / 460.1 MB, free: 14.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002111/0.2128, allocations: 1.535 MB / 461.6 MB, free: 12.61 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003411/0.2162, allocations: 1.902 MB / 463.5 MB, free: 10.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00292/0.2191, allocations: 3 MB / 466.5 MB, free: 7.695 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006033/0.2251, allocations: 4.541 MB / 471 MB, free: 3.137 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1953/0.4204, allocations: 20.78 MB / 491.8 MB, free: 35.3 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4204, allocations: 0 / 491.8 MB, free: 35.3 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4204, allocations: 0 / 491.8 MB, free: 35.3 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004001/0.4208, allocations: 1.188 kB / 491.8 MB, free: 35.3 MB / 430.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.02853/0.4494, allocations: 12.01 MB / 0.492 GB, free: 30.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.4494, allocations: 9.812 kB / 0.492 GB, free: 30.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04266/0.4921, allocations: 5.604 MB / 0.4975 GB, free: 27.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01988/0.5119, allocations: 6.37 MB / 0.5037 GB, free: 24.35 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005941/0.5125, allocations: 0.7089 MB / 0.5044 GB, free: 24.03 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00309/0.5156, allocations: 0.9288 MB / 0.5053 GB, free: 23.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03358/0.5492, allocations: 15.25 MB / 0.5202 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/0.5494, allocations: 7.953 kB / 0.5202 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009972/0.5504, allocations: 396.3 kB / 0.5206 GB, free: 13.63 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003393/0.5508, allocations: 0.5155 MB / 0.5211 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01894/0.5697, allocations: 13.72 MB / 0.5345 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06568/0.6354, allocations: 41.37 MB / 0.5749 GB, free: 5.871 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01398/0.6494, allocations: 7.98 MB / 0.5827 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004487/0.6538, allocations: 2.791 MB / 0.5854 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003009/0.6541, allocations: 90.94 kB / 0.5855 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.978e-05/0.6542, allocations: 79.53 kB / 0.5856 GB, free: 12.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.482e-06/0.6542, allocations: 4 kB / 0.5856 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.02991/0.6841, allocations: 14.68 MB / 0.5999 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.14e-05/0.6842, allocations: 94.42 kB / 0.6 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005202/0.6894, allocations: 3.563 MB / 0.6035 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002311/0.6896, allocations: 85.7 kB / 0.6036 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002967/0.6926, allocations: 4.193 MB / 0.6077 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/0.6938, allocations: 1.408 MB / 0.609 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00182/0.6956, allocations: 1.176 MB / 0.6102 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.6957, allocations: 305.1 kB / 0.6105 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00402/0.6998, allocations: 2.592 MB / 0.613 GB, free: 124 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006623/0.7064, allocations: 5.114 MB / 0.618 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.7172, allocations: 8.346 MB / 0.6261 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.304e-05/0.7173, allocations: 24 kB / 0.6262 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01466/0.7319, allocations: 8.626 MB / 0.6346 GB, free: 8.52 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.898e-05/0.732, allocations: 41.75 kB / 0.6346 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/0.7321, allocations: 84 kB / 0.6347 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002373/0.7345, allocations: 0.8279 MB / 0.6355 GB, free: 7.566 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004734/0.7392, allocations: 1.375 MB / 0.6369 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/0.7506, allocations: 7.357 MB / 0.644 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/0.7543, allocations: 327.5 kB / 0.6444 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000515/0.7548, allocations: 308 kB / 0.6447 GB, free: 14.27 MB / 0.545 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.00581/0.7606, allocations: 3.519 MB / 0.6481 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008341/0.7615, allocations: 421 kB / 0.6485 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/0.7721, allocations: 5.944 MB / 0.6543 GB, free: 4.469 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.683e-05/0.7721, allocations: 43.94 kB / 0.6543 GB, free: 4.426 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.7721, allocations: 8 kB / 0.6543 GB, free: 4.418 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.995e-05/0.7722, allocations: 21.56 kB / 0.6544 GB, free: 4.398 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/0.7951, allocations: 13.01 MB / 0.6671 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.7951, allocations: 4 kB / 0.6671 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002856/0.798, allocations: 0.7011 MB / 0.6678 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/0.8, allocations: 0.6942 MB / 0.6684 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002531/0.8003, allocations: 87.97 kB / 0.6685 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1992/0.9995, allocations: 6.389 MB / 0.6748 GB, free: 195.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.9995, allocations: 8 kB / 0.6748 GB, free: 195.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/1.012, allocations: 8.734 MB / 0.6833 GB, free: 194.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/1.014, allocations: 0.8336 MB / 0.6841 GB, free: 194.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004186/1.014, allocations: 76.77 kB / 0.6842 GB, free: 194.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001739/1.016, allocations: 183.9 kB / 0.6844 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004411/1.017, allocations: 285.1 kB / 0.6846 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002254/1.017, allocations: 124 kB / 0.6848 GB, free: 194.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002834/1.02, allocations: 2.276 MB / 0.687 GB, free: 193.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.02, allocations: 3.906 kB / 0.687 GB, free: 193.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004534/1.024, allocations: 1.547 MB / 0.6885 GB, free: 193.5 MB / 0.5606 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.0004259/1.025, allocations: 258.7 kB / 0.6887 GB, free: 193.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007552/1.032, allocations: 6.275 MB / 0.6949 GB, free: 191 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/1.032, allocations: 3.938 kB / 0.6949 GB, free: 191 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003381/1.035, allocations: 2.726 MB / 0.6975 GB, free: 190 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003464/1.039, allocations: 0.8854 MB / 0.6984 GB, free: 189.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01924/1.058, allocations: 16 MB / 0.714 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004585/1.063, allocations: 5.514 MB / 0.7194 GB, free: 171.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003843/1.067, allocations: 1.874 MB / 0.7212 GB, free: 170.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008522/1.067, allocations: 361.9 kB / 0.7216 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/1.067, allocations: 0 / 0.7216 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.0825/1.15, allocations: 55.47 MB / 0.7757 GB, free: 116.7 MB / 0.5606 GB " [Timeout remaining time 659] 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 -s ida -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/jenkins1/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/jenkins1/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: 7.137626260984689]