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.00152/0.001521, allocations: 104 kB / 17.06 MB, free: 6.027 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.001808/0.001808, allocations: 195 kB / 18 MB, free: 5.105 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.28/1.28, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000941/0.000941, allocations: 43.94 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2495, allocations: 49.44 MB / 400.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02817/0.2777, allocations: 28.58 MB / 429.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.2936, allocations: 8.392 MB / 437.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004709/0.2984, allocations: 211.4 kB / 437.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01691/0.3153, allocations: 8.165 MB / 446.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007988/0.3233, allocations: 2.781 MB / 448.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.3273, allocations: 1.858 MB / 450.7 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009713/0.337, allocations: 9.973 MB / 460.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02393/0.361, allocations: 21.35 MB / 482.1 MB, free: 7.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006286/0.3673, allocations: 5.369 MB / 487.4 MB, free: 1.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008164/0.3755, allocations: 6.031 MB / 493.5 MB, free: 11.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002578/0.3781, allocations: 1.543 MB / 495 MB, free: 10.21 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003932/0.382, allocations: 1.898 MB / 496.9 MB, free: 8.309 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00243/0.3845, allocations: 2.985 MB / 499.9 MB, free: 5.316 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00613/0.3906, allocations: 5.848 MB / 0.4939 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01819/0.4088, allocations: 20.61 MB / 0.514 GB, free: 10.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.4088, allocations: 0 / 0.514 GB, free: 10.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4089, allocations: 0 / 0.514 GB, free: 10.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003868/0.4093, allocations: 0 / 0.514 GB, free: 10.77 MB / 446.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.02935/0.4386, allocations: 11.85 MB / 0.5256 GB, free: 14.83 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.4387, allocations: 16.03 kB / 0.5256 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02969/0.4684, allocations: 5.623 MB / 0.5311 GB, free: 9.176 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/0.4812, allocations: 6.304 MB / 0.5373 GB, free: 2.812 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006591/0.4819, allocations: 0.7025 MB / 0.5379 GB, free: 2.109 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003017/0.485, allocations: 0.9256 MB / 0.5388 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3652/0.8502, allocations: 15.06 MB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002022/0.8504, allocations: 17.25 kB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008824/0.8513, allocations: 394.2 kB / 0.5539 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004662/0.8518, allocations: 0.5146 MB / 0.5544 GB, free: 112.1 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01849/0.8703, allocations: 13.74 MB / 0.5679 GB, free: 102.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04745/0.9178, allocations: 47.1 MB / 0.6139 GB, free: 54.33 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/0.9314, allocations: 28.6 MB / 0.6418 GB, free: 22.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003457/0.9349, allocations: 3.084 MB / 0.6448 GB, free: 18.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002754/0.9352, allocations: 240 kB / 0.645 GB, free: 18.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.9353, allocations: 73.58 kB / 0.6451 GB, free: 18.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 5.74e-06/0.9353, allocations: 3.984 kB / 0.6451 GB, free: 18.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02306/0.9583, allocations: 14.76 MB / 0.6595 GB, free: 3.781 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.9584, allocations: 98.41 kB / 0.6596 GB, free: 3.672 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003574/0.962, allocations: 3.606 MB / 0.6631 GB, free: 72 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/0.9622, allocations: 87.23 kB / 0.6632 GB, free: 15.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002463/0.9646, allocations: 4.041 MB / 0.6672 GB, free: 11.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000962/0.9656, allocations: 1.339 MB / 0.6685 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/0.9671, allocations: 1.16 MB / 0.6696 GB, free: 9.414 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/0.9672, allocations: 305.1 kB / 0.6699 GB, free: 9.113 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003454/0.9707, allocations: 2.592 MB / 0.6724 GB, free: 6.516 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004972/0.9757, allocations: 5.09 MB / 0.6774 GB, free: 260 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009123/0.9848, allocations: 8.337 MB / 0.6855 GB, free: 6.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-05/0.9848, allocations: 28 kB / 0.6856 GB, free: 6.699 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01271/0.9976, allocations: 8.639 MB / 0.694 GB, free: 14.03 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/0.9976, allocations: 44 kB / 0.694 GB, free: 13.99 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.576e-05/0.9977, allocations: 83.98 kB / 0.6941 GB, free: 13.91 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/0.9999, allocations: 0.8465 MB / 0.695 GB, free: 13.06 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/1.004, allocations: 1.365 MB / 0.6963 GB, free: 11.69 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/1.015, allocations: 7.691 MB / 0.7038 GB, free: 3.863 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003153/1.018, allocations: 327.2 kB / 0.7041 GB, free: 3.543 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004188/1.018, allocations: 308 kB / 0.7044 GB, free: 3.242 MB / 0.4982 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.004614/1.023, allocations: 3.51 MB / 0.7078 GB, free: 15.71 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007155/1.023, allocations: 407 kB / 0.7082 GB, free: 15.32 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009467/1.033, allocations: 5.992 MB / 0.7141 GB, free: 9.289 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/1.033, allocations: 40 kB / 0.7141 GB, free: 9.25 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/1.033, allocations: 8 kB / 0.7141 GB, free: 9.242 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/1.033, allocations: 19.92 kB / 0.7141 GB, free: 9.223 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02218/1.055, allocations: 14.94 MB / 0.7287 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/1.055, allocations: 4 kB / 0.7287 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002628/1.058, allocations: 0.6904 MB / 0.7294 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/1.06, allocations: 0.7176 MB / 0.7301 GB, free: 8.805 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/1.06, allocations: 87.97 kB / 0.7302 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008823/1.069, allocations: 6.696 MB / 0.7367 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.069, allocations: 7.938 kB / 0.7367 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2009/1.27, allocations: 8.752 MB / 0.7453 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.272, allocations: 0.8847 MB / 0.7461 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003955/1.272, allocations: 75.47 kB / 0.7462 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/1.274, allocations: 185.1 kB / 0.7464 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004224/1.274, allocations: 265 kB / 0.7466 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001971/1.274, allocations: 118.8 kB / 0.7468 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002801/1.277, allocations: 2.412 MB / 0.7491 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.277, allocations: 3.969 kB / 0.7491 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004084/1.281, allocations: 1.541 MB / 0.7506 GB, free: 173.3 MB / 0.5294 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.0004486/1.282, allocations: 268.5 kB / 0.7509 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007515/1.289, allocations: 6.523 MB / 0.7573 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.289, allocations: 0 / 0.7573 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003593/1.293, allocations: 2.956 MB / 0.7601 GB, free: 169.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003701/1.297, allocations: 0.964 MB / 0.7611 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01923/1.316, allocations: 15.69 MB / 0.7764 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004348/1.32, allocations: 5.975 MB / 0.7822 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003819/1.324, allocations: 1.881 MB / 0.7841 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008836/1.325, allocations: 341.4 kB / 0.7844 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.362e-06/1.325, allocations: 0 / 0.7844 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.07912/1.404, allocations: 60.08 MB / 0.8431 GB, free: 96.44 MB / 0.5294 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins/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