Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008462/0.0008463, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.6 MB / 223.7 MB, free: 8.926 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007275/0.0007275, allocations: 95.67 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.00023, allocations: 11.98 kB / 329.1 MB, free: 15.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1952, allocations: 47.57 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02/0.2152, allocations: 25.63 MB / 402.3 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.2298, allocations: 10.3 MB / 412.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005038/0.2348, allocations: 171.4 kB / 412.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005064/0.2399, allocations: 1.791 MB / 414.5 MB, free: 10 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00827/0.2482, allocations: 3.717 MB / 418.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004242/0.2525, allocations: 2.313 MB / 420.5 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.2642, allocations: 10.6 MB / 431.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03369/0.298, allocations: 27.32 MB / 458.5 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005321/0.3033, allocations: 4.051 MB / 462.5 MB, free: 7.883 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006216/0.3095, allocations: 4.925 MB / 467.4 MB, free: 2.938 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001383/0.3109, allocations: 0.6094 MB / 468.1 MB, free: 2.328 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002652/0.3136, allocations: 0.9606 MB / 469 MB, free: 1.367 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001604/0.3152, allocations: 2 MB / 471 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004996/0.3202, allocations: 4.849 MB / 475.9 MB, free: 10.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01746/0.3377, allocations: 19.9 MB / 495.8 MB, free: 6.512 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3377, allocations: 0 / 495.8 MB, free: 6.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.519e-06/0.3378, allocations: 4 kB / 495.8 MB, free: 6.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006358/0.3384, allocations: 0 / 495.8 MB, free: 6.508 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.1711/0.5095, allocations: 10.24 MB / 0.4942 GB, free: 97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.5095, allocations: 9.75 kB / 0.4942 GB, free: 97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04322/0.5528, allocations: 8.622 MB / 0.5026 GB, free: 93.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/0.5632, allocations: 5.899 MB / 0.5083 GB, free: 88.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006468/0.5639, allocations: 0.7393 MB / 0.5091 GB, free: 87.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002974/0.5669, allocations: 0.9796 MB / 0.51 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0299/0.5968, allocations: 16.48 MB / 0.5261 GB, free: 69.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/0.5971, allocations: 23.8 kB / 0.5261 GB, free: 69.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001194/0.5983, allocations: 415.3 kB / 0.5265 GB, free: 69.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003958/0.5987, allocations: 0.6028 MB / 0.5271 GB, free: 68.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02486/0.6236, allocations: 15.88 MB / 0.5426 GB, free: 52.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07915/0.7027, allocations: 52.26 MB / 0.5937 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03636/0.7392, allocations: 52.2 MB / 0.6446 GB, free: 4.523 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006248/0.7455, allocations: 3.448 MB / 0.648 GB, free: 1.066 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01841/0.7639, allocations: 9.414 MB / 0.6572 GB, free: 7.641 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.764, allocations: 64.69 kB / 0.6573 GB, free: 7.566 MB / 458.7 MB Notification: Performance of pre-optimization done (n=270): time 4.077e-06/0.764, allocations: 4 kB / 0.6573 GB, free: 7.562 MB / 458.7 MB Notification: Performance of matching and sorting (n=278): time 0.3123/1.076, allocations: 12.85 MB / 0.6698 GB, free: 162.6 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/1.076, allocations: 81.88 kB / 0.6699 GB, free: 162.6 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0057/1.082, allocations: 4.032 MB / 0.6738 GB, free: 161 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00036/1.082, allocations: 71.55 kB / 0.6739 GB, free: 161 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002278/1.085, allocations: 4.624 MB / 0.6784 GB, free: 157.5 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008314/1.086, allocations: 0.9926 MB / 0.6794 GB, free: 156.7 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/1.086, allocations: 124.8 kB / 0.6795 GB, free: 156.6 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0002447/1.086, allocations: 0.5491 MB / 0.68 GB, free: 156.2 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003289/1.089, allocations: 2.424 MB / 0.6824 GB, free: 155.3 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003886/1.093, allocations: 5.578 MB / 0.6879 GB, free: 150.2 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007406/1.101, allocations: 8.651 MB / 0.6963 GB, free: 143.3 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.983e-05/1.101, allocations: 35 kB / 0.6963 GB, free: 143.3 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01231/1.113, allocations: 8.689 MB / 0.7048 GB, free: 139.1 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.563e-05/1.113, allocations: 52 kB / 0.7049 GB, free: 139.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/1.113, allocations: 108 kB / 0.705 GB, free: 139 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/1.115, allocations: 0.8543 MB / 0.7058 GB, free: 138.3 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004281/1.12, allocations: 1.398 MB / 0.7072 GB, free: 137.1 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008103/1.128, allocations: 6.987 MB / 0.714 GB, free: 130.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/1.132, allocations: 351.7 kB / 0.7143 GB, free: 130.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007714/1.133, allocations: 348 kB / 0.7147 GB, free: 130.2 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005523/1.138, allocations: 3.68 MB / 0.7183 GB, free: 126.5 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009268/1.139, allocations: 406.2 kB / 0.7187 GB, free: 126.1 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00765/1.147, allocations: 5.047 MB / 0.7236 GB, free: 121 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/1.147, allocations: 31.98 kB / 0.7236 GB, free: 121 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/1.147, allocations: 8 kB / 0.7236 GB, free: 121 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-05/1.147, allocations: 19.88 kB / 0.7236 GB, free: 121 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/1.165, allocations: 12.16 MB / 0.7355 GB, free: 108.7 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/1.165, allocations: 4 kB / 0.7355 GB, free: 108.7 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/1.167, allocations: 0.527 MB / 0.736 GB, free: 108.2 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/1.168, allocations: 0.6875 MB / 0.7367 GB, free: 107.5 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002128/1.169, allocations: 63.97 kB / 0.7368 GB, free: 107.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006667/1.175, allocations: 6.151 MB / 0.7428 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.175, allocations: 4 kB / 0.7428 GB, free: 101.1 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008697/1.184, allocations: 7.291 MB / 0.7499 GB, free: 93.7 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.186, allocations: 0.8237 MB / 0.7507 GB, free: 92.86 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008086/1.187, allocations: 57.3 kB / 0.7508 GB, free: 92.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/1.188, allocations: 163.8 kB / 0.7509 GB, free: 92.64 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004066/1.189, allocations: 206 kB / 0.7511 GB, free: 92.44 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/1.189, allocations: 89.08 kB / 0.7512 GB, free: 92.35 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003304/1.192, allocations: 2.641 MB / 0.7538 GB, free: 89.7 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.3e-07/1.192, allocations: 0 / 0.7538 GB, free: 89.7 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.005184/1.197, allocations: 1.551 MB / 0.7553 GB, free: 88.15 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004508/1.198, allocations: 229.8 kB / 0.7555 GB, free: 87.93 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.007811/1.206, allocations: 6.074 MB / 0.7614 GB, free: 81.83 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.206, allocations: 0 / 0.7614 GB, free: 81.83 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003102/1.209, allocations: 2.465 MB / 0.7638 GB, free: 79.35 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005982/1.215, allocations: 0.8954 MB / 0.7647 GB, free: 78.46 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/1.24, allocations: 20.44 MB / 0.7847 GB, free: 57.99 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005078/1.245, allocations: 6.199 MB / 0.7907 GB, free: 51.75 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.004932/1.25, allocations: 1.951 MB / 0.7926 GB, free: 49.8 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008193/1.251, allocations: 327.4 kB / 0.793 GB, free: 49.48 MB / 458.8 MB Notification: Performance of SimCode: time 5.31e-07/1.251, allocations: 0 / 0.793 GB, free: 49.48 MB / 458.8 MB Notification: Performance of Templates: time 0.2559/1.507, allocations: 56.11 MB / 0.8477 GB, free: 136.7 MB / 458.8 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches