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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 108 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 46.14 kB / 300.8 MB, free: 6.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09538/0.09643, allocations: 49.45 MB / 350.3 MB, free: 4.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2111/0.3075, allocations: 28.06 MB / 378.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01849/0.3261, allocations: 8.278 MB / 386.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0076/0.3337, allocations: 208.2 kB / 386.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01777/0.3515, allocations: 7.74 MB / 394.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01066/0.3622, allocations: 2.508 MB / 397.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005412/0.3677, allocations: 1.722 MB / 398.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01434/0.382, allocations: 9.915 MB / 408.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03655/0.4186, allocations: 24.68 MB / 433.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01003/0.4287, allocations: 5.4 MB / 438.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01079/0.4395, allocations: 6.101 MB / 444.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004569/0.4441, allocations: 1.539 MB / 446.4 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00661/0.4508, allocations: 1.91 MB / 448.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004319/0.4551, allocations: 2.989 MB / 451.3 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0121/0.4672, allocations: 5.852 MB / 457.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02173/0.489, allocations: 18.01 MB / 475.2 MB, free: 9.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.489, allocations: 0 / 475.2 MB, free: 9.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4891, allocations: 0 / 475.2 MB, free: 9.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006071/0.4897, allocations: 4 kB / 475.2 MB, free: 9.262 MB / 382.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.03651/0.5262, allocations: 11.87 MB / 487 MB, free: 13.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.5263, allocations: 12.03 kB / 487.1 MB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03099/0.5573, allocations: 5.612 MB / 492.7 MB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.5706, allocations: 6.121 MB / 498.8 MB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007189/0.5713, allocations: 0.7025 MB / 499.5 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004094/0.5754, allocations: 0.9295 MB / 0.4887 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0396/0.615, allocations: 15.06 MB / 0.5034 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003578/0.6154, allocations: 23.83 kB / 0.5034 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003263/0.6187, allocations: 392 kB / 0.5038 GB, free: 300 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000536/0.6193, allocations: 0.5117 MB / 0.5043 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03138/0.6507, allocations: 13.73 MB / 0.5177 GB, free: 2.023 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4209/1.072, allocations: 47.64 MB / 0.5642 GB, free: 90.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01514/1.087, allocations: 28.57 MB / 0.5921 GB, free: 62.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004375/1.091, allocations: 3.078 MB / 0.5951 GB, free: 60.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003472/1.092, allocations: 240 kB / 0.5954 GB, free: 60.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/1.092, allocations: 80.94 kB / 0.5955 GB, free: 60.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 4.9e-06/1.092, allocations: 0 / 0.5955 GB, free: 60.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02622/1.118, allocations: 14.72 MB / 0.6098 GB, free: 47.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/1.118, allocations: 90.48 kB / 0.6099 GB, free: 47.15 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/1.122, allocations: 3.598 MB / 0.6134 GB, free: 43.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006554/1.123, allocations: 89.7 kB / 0.6135 GB, free: 43.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/1.125, allocations: 4.045 MB / 0.6175 GB, free: 39.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001253/1.126, allocations: 1.338 MB / 0.6188 GB, free: 38.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/1.128, allocations: 1.16 MB / 0.6199 GB, free: 36.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.124e-05/1.128, allocations: 301.1 kB / 0.6202 GB, free: 36.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003129/1.131, allocations: 2.596 MB / 0.6227 GB, free: 34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004102/1.135, allocations: 5.087 MB / 0.6277 GB, free: 27.74 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008228/1.143, allocations: 8.34 MB / 0.6358 GB, free: 18.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.947e-05/1.143, allocations: 24 kB / 0.6359 GB, free: 18.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01264/1.156, allocations: 8.616 MB / 0.6443 GB, free: 9.543 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.506e-05/1.156, allocations: 40 kB / 0.6443 GB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/1.156, allocations: 84 kB / 0.6444 GB, free: 9.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/1.158, allocations: 0.8423 MB / 0.6452 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004439/1.163, allocations: 1.369 MB / 0.6465 GB, free: 7.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00894/1.172, allocations: 7.614 MB / 0.654 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004561/1.176, allocations: 327.3 kB / 0.6543 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.177, allocations: 307.9 kB / 0.6546 GB, free: 14.83 MB / 446.1 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.007771/1.185, allocations: 3.517 MB / 0.658 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001283/1.187, allocations: 407 kB / 0.6584 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/1.197, allocations: 5.976 MB / 0.6642 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.208e-05/1.197, allocations: 44 kB / 0.6643 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.197, allocations: 8 kB / 0.6643 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.884e-05/1.197, allocations: 19.92 kB / 0.6643 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0292/1.227, allocations: 15.24 MB / 0.6792 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/1.227, allocations: 4.062 kB / 0.6792 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/1.229, allocations: 0.6943 MB / 0.6799 GB, free: 4.684 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/1.231, allocations: 0.7053 MB / 0.6806 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003154/1.232, allocations: 87.97 kB / 0.6807 GB, free: 3.891 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009256/1.241, allocations: 6.647 MB / 0.6871 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.241, allocations: 8 kB / 0.6872 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/1.255, allocations: 8.731 MB / 0.6957 GB, free: 4.246 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002318/1.257, allocations: 0.8864 MB / 0.6965 GB, free: 3.336 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009553/1.258, allocations: 76 kB / 0.6966 GB, free: 3.262 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/1.26, allocations: 183.8 kB / 0.6968 GB, free: 3.082 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006007/1.261, allocations: 266.7 kB / 0.697 GB, free: 2.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002484/1.261, allocations: 112 kB / 0.6972 GB, free: 2.711 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004484/1.265, allocations: 2.415 MB / 0.6995 GB, free: 312 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/1.265, allocations: 0 / 0.6995 GB, free: 312 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.2431/1.508, allocations: 1.544 MB / 0.701 GB, free: 156.1 MB / 478.1 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.001245/1.51, allocations: 252.9 kB / 0.7013 GB, free: 156 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0299/1.54, allocations: 12.86 MB / 0.7138 GB, free: 155.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/1.54, allocations: 3.906 kB / 0.7138 GB, free: 155.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004324/1.544, allocations: 2.936 MB / 0.7167 GB, free: 154.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004592/1.549, allocations: 0.9683 MB / 0.7176 GB, free: 153.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02668/1.575, allocations: 19.5 MB / 0.7367 GB, free: 141 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004747/1.58, allocations: 5.797 MB / 0.7423 GB, free: 136.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001527/1.582, allocations: 385.8 kB / 0.7427 GB, free: 136.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/1.582, allocations: 0 / 0.7427 GB, free: 136.1 MB / 478.1 MB Notification: Performance of Templates: time 0.3748/1.957, allocations: 150.6 MB / 0.8898 GB, free: 143.5 MB / 478.1 MB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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