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.0008791/0.0008791, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0008035/0.0008035, allocations: 147.4 kB / 24.9 MB, free: 8.727 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.9071/0.9071, allocations: 173.4 MB / 201.5 MB, free: 8.75 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.012e-06/1.012e-06, allocations: 0 / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.757e-05, allocations: 6.109 kB / 268.5 MB, free: 5.984 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1362/0.1362, allocations: 26.79 MB / 295.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.152, allocations: 8.716 MB / 304 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005218/0.1572, allocations: 252.9 kB / 304.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01038/0.1676, allocations: 8.694 MB / 313 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007797/0.1754, allocations: 2.937 MB / 315.9 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.1789, allocations: 1.874 MB / 317.8 MB, free: 6.391 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00856/0.1875, allocations: 10.36 MB / 328.1 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01724/0.2047, allocations: 14.32 MB / 342.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01203/0.2168, allocations: 8.284 MB / 350.7 MB, free: 7.676 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008734/0.2255, allocations: 5.965 MB / 356.7 MB, free: 1.699 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004053/0.2295, allocations: 1.535 MB / 358.2 MB, free: 164 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005083/0.2346, allocations: 1.882 MB / 360.1 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004112/0.2387, allocations: 3.09 MB / 363.2 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007539/0.2463, allocations: 3.949 MB / 367.2 MB, free: 7.223 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.2596, allocations: 9.878 MB / 377 MB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2596, allocations: 0 / 377 MB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2596, allocations: 0 / 377 MB, free: 13.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003803/0.26, allocations: 4 kB / 377 MB, free: 13.31 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.01781/0.2778, allocations: 11.43 MB / 388.5 MB, free: 1.801 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2778, allocations: 12.92 kB / 388.5 MB, free: 1.789 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01476/0.2926, allocations: 5.682 MB / 394.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006421/0.299, allocations: 3.311 MB / 397.5 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004356/0.2994, allocations: 0.6989 MB / 398.2 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001788/0.3012, allocations: 0.9373 MB / 399.1 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/0.3139, allocations: 7.627 MB / 406.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001815/0.3141, allocations: 11.89 kB / 406.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008049/0.3149, allocations: 392 kB / 407.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003311/0.3152, allocations: 0.5116 MB / 407.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00796/0.3232, allocations: 3.839 MB / 411.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2813/0.6044, allocations: 29.36 MB / 440.8 MB, free: 78.13 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006281/0.6107, allocations: 4.55 MB / 445.4 MB, free: 77.88 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.6122, allocations: 1.046 MB / 446.4 MB, free: 77.84 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002532/0.6125, allocations: 106.2 kB / 446.5 MB, free: 77.84 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/0.6125, allocations: 72.95 kB / 446.6 MB, free: 77.8 MB / 378.8 MB Notification: Performance of pre-optimization done (n=384): time 7.164e-06/0.6125, allocations: 0 / 446.6 MB, free: 77.8 MB / 378.8 MB Notification: Performance of matching and sorting (n=392): time 0.0115/0.624, allocations: 6.367 MB / 453 MB, free: 77.28 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.6241, allocations: 95.05 kB / 453.1 MB, free: 77.21 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002171/0.6262, allocations: 2.449 MB / 455.5 MB, free: 76.86 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002547/0.6265, allocations: 84.45 kB / 455.6 MB, free: 76.83 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.6278, allocations: 3.845 MB / 459.5 MB, free: 75.07 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007229/0.6285, allocations: 1.396 MB / 460.8 MB, free: 74.2 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001/0.6295, allocations: 1.081 MB / 461.9 MB, free: 74.1 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.091e-05/0.6296, allocations: 310.1 kB / 462.2 MB, free: 73.8 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006561/0.6302, allocations: 0.5598 MB / 462.8 MB, free: 73.78 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.6316, allocations: 3.103 MB / 465.9 MB, free: 70.7 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/0.6345, allocations: 4.414 MB / 470.3 MB, free: 67.55 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.882e-05/0.6345, allocations: 25.59 kB / 470.3 MB, free: 67.55 MB / 378.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.004737/0.6392, allocations: 3.874 MB / 474.2 MB, free: 67.35 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.189e-05/0.6393, allocations: 41.06 kB / 474.2 MB, free: 67.35 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.73e-05/0.6394, allocations: 82.94 kB / 474.3 MB, free: 67.35 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001486/0.6408, allocations: 0.7344 MB / 475.1 MB, free: 67.3 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002306/0.6432, allocations: 1.271 MB / 476.3 MB, free: 67.3 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003536/0.6467, allocations: 3.741 MB / 480.1 MB, free: 65.88 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00262/0.6493, allocations: 241.3 kB / 480.3 MB, free: 65.85 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004753/0.6498, allocations: 248.7 kB / 480.6 MB, free: 65.85 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.001925/0.6517, allocations: 0.5226 MB / 481.1 MB, free: 65.67 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006768/0.6524, allocations: 370.9 kB / 481.4 MB, free: 65.66 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002914/0.6553, allocations: 2.509 MB / 483.9 MB, free: 64.8 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.6553, allocations: 40 kB / 484 MB, free: 64.76 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.6553, allocations: 8 kB / 484 MB, free: 64.75 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/0.6553, allocations: 19.83 kB / 484 MB, free: 64.75 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00938/0.6647, allocations: 6.72 MB / 490.7 MB, free: 60.05 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.6647, allocations: 4 kB / 490.7 MB, free: 60.05 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.6659, allocations: 0.5902 MB / 491.3 MB, free: 59.52 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.6671, allocations: 0.6056 MB / 491.9 MB, free: 58.94 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.6672, allocations: 76.55 kB / 492 MB, free: 58.91 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002733/0.6699, allocations: 3.323 MB / 495.3 MB, free: 56.22 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.6699, allocations: 4 kB / 495.3 MB, free: 56.21 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00336/0.6733, allocations: 3.094 MB / 498.4 MB, free: 53.27 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.6743, allocations: 491.9 kB / 498.9 MB, free: 52.84 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/0.6746, allocations: 79.55 kB / 499 MB, free: 52.82 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007248/0.6753, allocations: 97.14 kB / 499.1 MB, free: 52.78 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002827/0.6756, allocations: 271.9 kB / 499.3 MB, free: 52.54 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.6757, allocations: 81.42 kB / 499.4 MB, free: 52.49 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0009539/0.6767, allocations: 1.102 MB / 0.4888 GB, free: 51.59 MB / 378.8 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6767, allocations: 3.828 kB / 0.4888 GB, free: 51.59 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003566/0.6803, allocations: 1.535 MB / 0.4903 GB, free: 50.21 MB / 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.0003778/0.6806, allocations: 244.1 kB / 0.4905 GB, free: 50.06 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003304/0.6839, allocations: 3.049 MB / 0.4935 GB, free: 47.54 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.000102/0.684, allocations: 64.88 kB / 0.4936 GB, free: 47.46 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.6855, allocations: 1.489 MB / 0.495 GB, free: 46.21 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.6877, allocations: 0.9003 MB / 0.4959 GB, free: 45.6 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/0.7067, allocations: 13.14 MB / 0.5087 GB, free: 33.49 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001843/0.7086, allocations: 1.789 MB / 0.5105 GB, free: 31.68 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.001903/0.7105, allocations: 0.6703 MB / 0.5111 GB, free: 31.01 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/0.7119, allocations: 0.8859 MB / 0.512 GB, free: 30.14 MB / 378.8 MB Notification: Performance of SimCode: time 1.673e-06/0.7119, allocations: 0 / 0.512 GB, free: 30.14 MB / 378.8 MB Notification: Performance of Templates: time 0.08807/0.7999, allocations: 59.65 MB / 0.5702 GB, free: 4.961 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=240 -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.630760539788753]