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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_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=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 95.39 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000799/0.0007995, allocations: 39.94 kB / 350.1 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.223, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0294/0.2525, allocations: 28.06 MB / 427.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.2724, allocations: 8.325 MB / 435.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00907/0.2815, allocations: 207.4 kB / 436.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02517/0.3068, allocations: 7.722 MB / 443.8 MB, free: 4.914 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01358/0.3204, allocations: 2.541 MB / 446.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007892/0.3283, allocations: 1.745 MB / 448.1 MB, free: 0.625 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01866/0.347, allocations: 10.02 MB / 458.1 MB, free: 6.566 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03839/0.3854, allocations: 17.82 MB / 475.9 MB, free: 4.602 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009343/0.3948, allocations: 4.704 MB / 480.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01138/0.4062, allocations: 5.781 MB / 486.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003939/0.4102, allocations: 1.051 MB / 487.5 MB, free: 9.031 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006034/0.4163, allocations: 1.402 MB / 488.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004608/0.4209, allocations: 2.481 MB / 491.3 MB, free: 5.141 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01146/0.4324, allocations: 5.329 MB / 496.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3693/0.8018, allocations: 20.15 MB / 0.5047 GB, free: 37.72 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.8019, allocations: 3.75 kB / 0.5047 GB, free: 37.72 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.965e-06/0.8019, allocations: 0 / 0.5047 GB, free: 37.72 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0005463/0.8024, allocations: 3.031 kB / 0.5047 GB, free: 37.72 MB / 378.8 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.03338/0.8358, allocations: 11.87 MB / 0.5163 GB, free: 34.75 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.8359, allocations: 9.25 kB / 0.5163 GB, free: 34.75 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02861/0.8645, allocations: 5.613 MB / 0.5218 GB, free: 33.32 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/0.8791, allocations: 6.115 MB / 0.5278 GB, free: 31.66 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009882/0.8801, allocations: 0.7082 MB / 0.5285 GB, free: 31.64 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004216/0.8844, allocations: 0.9352 MB / 0.5294 GB, free: 31.63 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03618/0.9206, allocations: 15.07 MB / 0.5441 GB, free: 20.13 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000354/0.921, allocations: 11.91 kB / 0.5441 GB, free: 20.12 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003196/0.9242, allocations: 395 kB / 0.5445 GB, free: 19.75 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006094/0.9248, allocations: 0.5156 MB / 0.545 GB, free: 19.23 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04056/0.9654, allocations: 13.73 MB / 0.5584 GB, free: 5.484 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0967/1.062, allocations: 47.63 MB / 0.6049 GB, free: 5.551 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0217/1.084, allocations: 28.58 MB / 0.6328 GB, free: 5.27 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00484/1.089, allocations: 3.073 MB / 0.6358 GB, free: 2.195 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003804/1.089, allocations: 241 kB / 0.6361 GB, free: 1.934 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/1.089, allocations: 77.52 kB / 0.6361 GB, free: 1.848 MB / 458.8 MB Notification: Performance of pre-optimization done (n=384): time 7.053e-06/1.089, allocations: 0 / 0.6361 GB, free: 1.848 MB / 458.8 MB Notification: Performance of matching and sorting (n=392): time 0.02812/1.117, allocations: 14.73 MB / 0.6505 GB, free: 3.07 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/1.117, allocations: 90.48 kB / 0.6506 GB, free: 2.969 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/1.122, allocations: 3.597 MB / 0.6541 GB, free: 15.38 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004469/1.123, allocations: 85.7 kB / 0.6542 GB, free: 15.29 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/1.125, allocations: 4.042 MB / 0.6581 GB, free: 11.22 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/1.126, allocations: 1.339 MB / 0.6594 GB, free: 9.895 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001694/1.128, allocations: 1.164 MB / 0.6606 GB, free: 8.719 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 6.8e-05/1.128, allocations: 309.1 kB / 0.6609 GB, free: 8.414 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003593/1.132, allocations: 2.588 MB / 0.6634 GB, free: 5.82 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005099/1.137, allocations: 5.083 MB / 0.6684 GB, free: 15.61 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009587/1.146, allocations: 8.328 MB / 0.6765 GB, free: 6.434 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.915e-05/1.146, allocations: 24 kB / 0.6765 GB, free: 6.41 MB / 0.4949 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.1975/1.344, allocations: 8.622 MB / 0.6849 GB, free: 189 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 5.817e-05/1.344, allocations: 39.34 kB / 0.685 GB, free: 189 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001094/1.344, allocations: 90.19 kB / 0.6851 GB, free: 189 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002004/1.346, allocations: 0.8376 MB / 0.6859 GB, free: 189 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004726/1.351, allocations: 1.373 MB / 0.6872 GB, free: 189 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009549/1.36, allocations: 7.102 MB / 0.6942 GB, free: 186.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/1.364, allocations: 328.2 kB / 0.6945 GB, free: 186.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004447/1.365, allocations: 309.2 kB / 0.6948 GB, free: 186.6 MB / 0.4949 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.004477/1.369, allocations: 3.511 MB / 0.6982 GB, free: 185 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006839/1.37, allocations: 406.6 kB / 0.6986 GB, free: 185 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008447/1.378, allocations: 5.979 MB / 0.7044 GB, free: 182.6 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/1.378, allocations: 38.88 kB / 0.7045 GB, free: 182.6 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/1.378, allocations: 7.844 kB / 0.7045 GB, free: 182.6 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.807e-05/1.378, allocations: 19.08 kB / 0.7045 GB, free: 182.6 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.398, allocations: 15.24 MB / 0.7194 GB, free: 176.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/1.398, allocations: 3.5 kB / 0.7194 GB, free: 176.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002386/1.401, allocations: 0.6929 MB / 0.7201 GB, free: 176 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/1.403, allocations: 0.6942 MB / 0.7207 GB, free: 175.5 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001943/1.403, allocations: 83.75 kB / 0.7208 GB, free: 175.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006886/1.41, allocations: 6.151 MB / 0.7268 GB, free: 170 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.41, allocations: 12.58 kB / 0.7268 GB, free: 170 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/1.426, allocations: 14.91 MB / 0.7414 GB, free: 155.4 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001656/1.428, allocations: 0.8786 MB / 0.7422 GB, free: 154.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004039/1.428, allocations: 79.91 kB / 0.7423 GB, free: 154.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/1.43, allocations: 183.9 kB / 0.7425 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004818/1.43, allocations: 262.7 kB / 0.7427 GB, free: 154 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001971/1.431, allocations: 122.2 kB / 0.7429 GB, free: 153.8 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002788/1.433, allocations: 2.412 MB / 0.7452 GB, free: 151.4 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.31e-07/1.433, allocations: 0 / 0.7452 GB, free: 151.4 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.005248/1.439, allocations: 1.757 MB / 0.7469 GB, free: 149.7 MB / 0.4949 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.0005583/1.439, allocations: 257.7 kB / 0.7472 GB, free: 149.4 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.008396/1.448, allocations: 6.503 MB / 0.7535 GB, free: 142.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.448, allocations: 0 / 0.7535 GB, free: 142.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003592/1.451, allocations: 2.933 MB / 0.7564 GB, free: 140 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004207/1.455, allocations: 0.9074 MB / 0.7573 GB, free: 139.1 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02414/1.48, allocations: 21.96 MB / 0.7787 GB, free: 117 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005192/1.485, allocations: 6.076 MB / 0.7847 GB, free: 110.9 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.004804/1.49, allocations: 1.881 MB / 0.7865 GB, free: 109 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009363/1.491, allocations: 347.4 kB / 0.7868 GB, free: 108.7 MB / 0.4949 GB Notification: Performance of SimCode: time 8.42e-07/1.491, allocations: 0 / 0.7868 GB, free: 108.7 MB / 0.4949 GB Notification: Performance of Templates: time 0.08644/1.577, allocations: 62.36 MB / 0.8477 GB, free: 46.75 MB / 0.4949 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches