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.001867/0.001867, allocations: 75.45 kB / 20.49 MB, free: 1.246 MB / 14.72 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.001742/0.001742, allocations: 168.9 kB / 23.75 MB, free: 4.219 MB / 14.72 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 1.444/1.444, allocations: 177.1 MB / 204 MB, free: 9.25 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001968/0.001968, allocations: 62.27 kB / 324.8 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09061/0.09258, allocations: 53.38 MB / 378.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03132/0.1239, allocations: 24.63 MB / 402.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01793/0.1418, allocations: 8.17 MB / 411 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005563/0.1474, allocations: 258.6 kB / 411.3 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02056/0.1679, allocations: 8.026 MB / 419.3 MB, free: 6.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.1781, allocations: 2.832 MB / 422.1 MB, free: 3.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006403/0.1845, allocations: 1.864 MB / 424 MB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0154/0.1999, allocations: 10.1 MB / 434.1 MB, free: 7.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02662/0.2266, allocations: 13.86 MB / 447.9 MB, free: 9.688 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0178/0.2444, allocations: 8.374 MB / 456.3 MB, free: 1.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01079/0.2551, allocations: 5.863 MB / 462.2 MB, free: 11.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004094/0.2592, allocations: 1.547 MB / 463.7 MB, free: 9.863 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005528/0.2648, allocations: 1.91 MB / 465.6 MB, free: 7.957 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004653/0.2694, allocations: 2.989 MB / 468.6 MB, free: 4.961 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009239/0.2787, allocations: 4.541 MB / 473.2 MB, free: 412 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.22/0.4987, allocations: 20.77 MB / 493.9 MB, free: 36.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.4987, allocations: 3 kB / 493.9 MB, free: 36.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4987, allocations: 3.656 kB / 493.9 MB, free: 36.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004758/0.4992, allocations: 0 / 493.9 MB, free: 36.57 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.03366/0.5328, allocations: 12.02 MB / 0.4941 GB, free: 30.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.5329, allocations: 8.906 kB / 0.4941 GB, free: 30.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02875/0.5616, allocations: 5.6 MB / 0.4996 GB, free: 27.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/0.5744, allocations: 6.377 MB / 0.5058 GB, free: 23.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.5748, allocations: 0.7081 MB / 0.5065 GB, free: 23.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003135/0.578, allocations: 0.9255 MB / 0.5074 GB, free: 23.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02955/0.6075, allocations: 15.25 MB / 0.5223 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002799/0.6078, allocations: 15.94 kB / 0.5223 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002163/0.6099, allocations: 390.5 kB / 0.5227 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003748/0.6103, allocations: 0.5155 MB / 0.5232 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02766/0.638, allocations: 13.72 MB / 0.5366 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08878/0.7268, allocations: 41.35 MB / 0.577 GB, free: 3.992 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01473/0.7415, allocations: 7.983 MB / 0.5847 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005275/0.7468, allocations: 2.803 MB / 0.5875 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003822/0.7472, allocations: 90.22 kB / 0.5876 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.378e-05/0.7472, allocations: 77.58 kB / 0.5876 GB, free: 10.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.392e-06/0.7472, allocations: 0 / 0.5876 GB, free: 10.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03379/0.781, allocations: 14.68 MB / 0.602 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/0.7811, allocations: 94.48 kB / 0.6021 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006402/0.7875, allocations: 3.559 MB / 0.6056 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007001/0.7882, allocations: 89.7 kB / 0.6056 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003457/0.7917, allocations: 4.185 MB / 0.6097 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002014/0.7937, allocations: 1.408 MB / 0.6111 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002141/0.7958, allocations: 1.176 MB / 0.6122 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.796, allocations: 308.7 kB / 0.6125 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005182/0.8012, allocations: 2.592 MB / 0.6151 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007885/0.809, allocations: 5.115 MB / 0.6201 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01319/0.8222, allocations: 8.342 MB / 0.6282 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.571e-05/0.8223, allocations: 24 kB / 0.6282 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01893/0.8413, allocations: 8.628 MB / 0.6367 GB, free: 6.613 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.721e-05/0.8413, allocations: 42.62 kB / 0.6367 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001459/0.8415, allocations: 84 kB / 0.6368 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002715/0.8442, allocations: 0.8348 MB / 0.6376 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00561/0.8498, allocations: 1.37 MB / 0.6389 GB, free: 4.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/0.8628, allocations: 7.349 MB / 0.6461 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005748/0.8686, allocations: 331.5 kB / 0.6464 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00142/0.87, allocations: 312 kB / 0.6467 GB, free: 12.38 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.009197/0.8792, allocations: 3.509 MB / 0.6502 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/0.8804, allocations: 421.3 kB / 0.6506 GB, free: 8.547 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/0.8929, allocations: 5.94 MB / 0.6564 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.951e-05/0.893, allocations: 43.94 kB / 0.6564 GB, free: 2.555 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/0.893, allocations: 8 kB / 0.6564 GB, free: 2.547 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-05/0.8931, allocations: 19.92 kB / 0.6564 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02978/0.9228, allocations: 13.01 MB / 0.6691 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.892e-05/0.9229, allocations: 8 kB / 0.6691 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003013/0.9259, allocations: 0.6984 MB / 0.6698 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/0.928, allocations: 0.6942 MB / 0.6705 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004902/0.9285, allocations: 87.97 kB / 0.6706 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2239/1.152, allocations: 6.393 MB / 0.6768 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.152, allocations: 10.12 kB / 0.6768 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/1.164, allocations: 8.738 MB / 0.6854 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/1.166, allocations: 0.8291 MB / 0.6862 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/1.166, allocations: 76.52 kB / 0.6863 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/1.168, allocations: 182.2 kB / 0.6864 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004432/1.169, allocations: 280.4 kB / 0.6867 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/1.169, allocations: 118.2 kB / 0.6868 GB, free: 163.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002917/1.172, allocations: 2.283 MB / 0.689 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.172, allocations: 0.8438 kB / 0.689 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004917/1.177, allocations: 1.546 MB / 0.6906 GB, free: 162.4 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.0005518/1.177, allocations: 265.8 kB / 0.6908 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008941/1.186, allocations: 6.275 MB / 0.6969 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/1.186, allocations: 0 / 0.6969 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003731/1.19, allocations: 2.729 MB / 0.6996 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004014/1.194, allocations: 0.9054 MB / 0.7005 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02425/1.218, allocations: 15.98 MB / 0.7161 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005427/1.224, allocations: 5.517 MB / 0.7215 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004179/1.228, allocations: 1.871 MB / 0.7233 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009704/1.229, allocations: 349.7 kB / 0.7236 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of SimCode: time 9.32e-07/1.229, allocations: 0 / 0.7236 GB, free: 143.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.08406/1.313, allocations: 55.46 MB / 0.7778 GB, free: 89.23 MB / 0.5606 GB " [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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.604142259806395]