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.001486/0.001486, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.0009681/0.0009681, allocations: 145.1 kB / 24.89 MB, free: 8.785 MB / 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.8827/0.8827, allocations: 173.4 MB / 201.5 MB, free: 8.277 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.433e-06/1.433e-06, allocations: 0 / 268.6 MB, free: 9.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23e-05/1.374e-05, allocations: 5.406 kB / 268.6 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01961/0.01962, allocations: 26.85 MB / 295.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.03467, allocations: 8.717 MB / 304.1 MB, free: 6.027 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003574/0.03824, allocations: 250.8 kB / 304.4 MB, free: 5.781 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009078/0.04732, allocations: 8.624 MB / 313 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004988/0.05231, allocations: 2.912 MB / 315.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002381/0.05469, allocations: 1.87 MB / 317.8 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007586/0.06227, allocations: 10.36 MB / 328.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1297/0.192, allocations: 14.3 MB / 342.4 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008491/0.2005, allocations: 8.288 MB / 350.7 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007635/0.2081, allocations: 5.961 MB / 356.7 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003186/0.2113, allocations: 1.534 MB / 358.2 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/0.2141, allocations: 1.905 MB / 360.1 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001607/0.2157, allocations: 3.086 MB / 363.2 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004569/0.2202, allocations: 3.948 MB / 367.2 MB, free: 23.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007201/0.2274, allocations: 9.882 MB / 377 MB, free: 19.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2274, allocations: 0 / 377 MB, free: 19.32 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2274, allocations: 5.75 kB / 377 MB, free: 19.32 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001915/0.2276, allocations: 0 / 377 MB, free: 19.32 MB / 314.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.01431/0.2419, allocations: 11.43 MB / 388.5 MB, free: 10.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.242, allocations: 12.03 kB / 388.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01483/0.2568, allocations: 5.669 MB / 394.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005358/0.2622, allocations: 3.326 MB / 397.5 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.2624, allocations: 0.6945 MB / 398.2 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008455/0.2632, allocations: 0.9268 MB / 399.1 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009748/0.273, allocations: 7.64 MB / 406.7 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/0.2731, allocations: 11.91 kB / 406.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006451/0.2738, allocations: 393.9 kB / 407.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003317/0.2741, allocations: 0.5116 MB / 407.7 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00545/0.2796, allocations: 3.837 MB / 411.5 MB, free: 4.055 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03021/0.3098, allocations: 29.36 MB / 440.8 MB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005184/0.315, allocations: 4.541 MB / 445.4 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.3161, allocations: 1.053 MB / 446.4 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002081/0.3163, allocations: 106.9 kB / 446.5 MB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.3163, allocations: 77.58 kB / 446.6 MB, free: 1.949 MB / 362.7 MB Notification: Performance of pre-optimization done (n=384): time 4.578e-06/0.3163, allocations: 0 / 446.6 MB, free: 1.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=392): time 0.0109/0.3272, allocations: 6.369 MB / 453 MB, free: 11.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.3273, allocations: 90.48 kB / 453.1 MB, free: 11.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001736/0.329, allocations: 2.447 MB / 455.5 MB, free: 9.559 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.3292, allocations: 89.7 kB / 455.6 MB, free: 9.465 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001654/0.3308, allocations: 3.845 MB / 459.5 MB, free: 5.746 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006506/0.3315, allocations: 1.399 MB / 460.9 MB, free: 4.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009895/0.3325, allocations: 1.075 MB / 461.9 MB, free: 3.457 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.3325, allocations: 305.1 kB / 462.2 MB, free: 3.156 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007271/0.3333, allocations: 0.5583 MB / 462.8 MB, free: 2.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00207/0.3353, allocations: 3.099 MB / 465.9 MB, free: 14.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003095/0.3384, allocations: 4.42 MB / 470.3 MB, free: 9.391 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.36e-05/0.3384, allocations: 24 kB / 470.3 MB, free: 9.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004408/0.3429, allocations: 3.867 MB / 474.2 MB, free: 6.043 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.3429, allocations: 47.41 kB / 474.2 MB, free: 6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.051e-05/0.3429, allocations: 84 kB / 474.3 MB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.3443, allocations: 0.7369 MB / 475.1 MB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/0.3467, allocations: 1.335 MB / 476.4 MB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003918/0.3506, allocations: 3.767 MB / 480.2 MB, free: 224 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.3521, allocations: 243.7 kB / 480.4 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/0.3523, allocations: 247.9 kB / 480.6 MB, free: 15.74 MB / 410.7 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.001426/0.3538, allocations: 0.5245 MB / 481.2 MB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004966/0.3543, allocations: 370.6 kB / 481.5 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.3573, allocations: 2.515 MB / 484 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.3573, allocations: 40 kB / 484.1 MB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3573, allocations: 8 kB / 484.1 MB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.196e-05/0.3574, allocations: 19.92 kB / 484.1 MB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008654/0.366, allocations: 6.703 MB / 490.8 MB, free: 6.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/0.366, allocations: 15.98 kB / 490.8 MB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.3674, allocations: 0.6382 MB / 491.5 MB, free: 5.633 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.3686, allocations: 0.5983 MB / 492.1 MB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/0.3687, allocations: 75.98 kB / 492.1 MB, free: 4.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003709/0.3725, allocations: 3.336 MB / 495.5 MB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3725, allocations: 4 kB / 495.5 MB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1512/0.5236, allocations: 3.091 MB / 498.6 MB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.5249, allocations: 493.9 kB / 499.1 MB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000329/0.5252, allocations: 73.88 kB / 499.1 MB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007852/0.526, allocations: 97.59 kB / 499.2 MB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/0.5264, allocations: 275.9 kB / 499.5 MB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/0.5265, allocations: 84.69 kB / 499.6 MB, free: 101.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001099/0.5276, allocations: 1.101 MB / 0.4889 GB, free: 101.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5276, allocations: 0 / 0.4889 GB, free: 101.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004011/0.5316, allocations: 1.535 MB / 0.4904 GB, free: 101.6 MB / 410.7 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.00051/0.5321, allocations: 245.3 kB / 0.4907 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003415/0.5356, allocations: 3.049 MB / 0.4937 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000101/0.5357, allocations: 65.97 kB / 0.4937 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.5371, allocations: 1.486 MB / 0.4952 GB, free: 101 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.539, allocations: 0.9007 MB / 0.496 GB, free: 101 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/0.5541, allocations: 13.14 MB / 0.5089 GB, free: 95.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.5556, allocations: 1.782 MB / 0.5106 GB, free: 95.71 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001819/0.5574, allocations: 0.6735 MB / 0.5113 GB, free: 95.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/0.5589, allocations: 0.8862 MB / 0.5121 GB, free: 95.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.773e-06/0.5589, allocations: 0 / 0.5121 GB, free: 95.52 MB / 410.7 MB Notification: Performance of Templates: time 0.07194/0.6308, allocations: 59.64 MB / 0.5704 GB, free: 50.74 MB / 410.7 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 -s gbode -gbm=radauIIA3 -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.176451578736305]