Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008101/0.0008101, allocations: 182.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 225.7 MB / 243.2 MB, free: 8.527 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009577/0.0009576, allocations: 96.41 kB / 294.4 MB, free: 9.539 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002427/0.0002427, allocations: 8 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2423, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01804/0.2604, allocations: 25.07 MB / 429.7 MB, free: 6.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.2769, allocations: 10.15 MB / 439.8 MB, free: 11.53 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005159/0.2821, allocations: 195.4 kB / 440 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005586/0.2877, allocations: 1.763 MB / 441.8 MB, free: 9.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00941/0.2972, allocations: 3.484 MB / 445.3 MB, free: 5.836 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005057/0.3023, allocations: 2.278 MB / 447.5 MB, free: 3.371 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01273/0.315, allocations: 9.87 MB / 457.4 MB, free: 9.461 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03837/0.3534, allocations: 27.22 MB / 484.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006705/0.3602, allocations: 3.853 MB / 488.5 MB, free: 8.746 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008855/0.3691, allocations: 4.61 MB / 493.1 MB, free: 4.117 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002778/0.3719, allocations: 0.5977 MB / 493.7 MB, free: 3.52 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00521/0.3772, allocations: 0.9449 MB / 494.6 MB, free: 2.574 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003708/0.3809, allocations: 1.841 MB / 496.5 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009853/0.3908, allocations: 4.597 MB / 0.4893 GB, free: 12.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2363/0.6271, allocations: 19.35 MB / 0.5082 GB, free: 43.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.6271, allocations: 0 / 0.5082 GB, free: 43.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.6271, allocations: 6.656 kB / 0.5082 GB, free: 43.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005969/0.6278, allocations: 0 / 0.5082 GB, free: 43.57 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.02707/0.6548, allocations: 9.8 MB / 0.5178 GB, free: 38.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.308e-05/0.6549, allocations: 9.406 kB / 0.5178 GB, free: 38.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02852/0.6834, allocations: 5.628 MB / 0.5233 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01524/0.6987, allocations: 6.131 MB / 0.5293 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007825/0.6996, allocations: 0.7131 MB / 0.53 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00445/0.704, allocations: 0.9335 MB / 0.5309 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04237/0.7464, allocations: 14.99 MB / 0.5455 GB, free: 28.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006036/0.7471, allocations: 15.91 kB / 0.5456 GB, free: 28.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003894/0.751, allocations: 395.9 kB / 0.5459 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005017/0.7515, allocations: 0.518 MB / 0.5464 GB, free: 27.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03263/0.7842, allocations: 13.65 MB / 0.5598 GB, free: 17.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08456/0.8688, allocations: 47.77 MB / 0.6064 GB, free: 1.395 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02064/0.8895, allocations: 28.54 MB / 0.6343 GB, free: 1.148 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004477/0.894, allocations: 3.072 MB / 0.6373 GB, free: 14.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003048/0.8943, allocations: 234.9 kB / 0.6375 GB, free: 13.82 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.356e-05/0.8944, allocations: 73.52 kB / 0.6376 GB, free: 13.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=384): time 5.53e-06/0.8944, allocations: 4 kB / 0.6376 GB, free: 13.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=392): time 0.02649/0.9209, allocations: 14.69 MB / 0.6519 GB, free: 14.99 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.9209, allocations: 90.48 kB / 0.652 GB, free: 14.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/0.926, allocations: 3.575 MB / 0.6555 GB, free: 11.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003699/0.9264, allocations: 85.7 kB / 0.6556 GB, free: 11.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/0.9289, allocations: 4.041 MB / 0.6595 GB, free: 7.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001158/0.93, allocations: 1.344 MB / 0.6609 GB, free: 5.828 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002658/0.9303, allocations: 124 kB / 0.661 GB, free: 5.707 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003166/0.9306, allocations: 0.5423 MB / 0.6615 GB, free: 5.156 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003663/0.9343, allocations: 2.564 MB / 0.664 GB, free: 2.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005265/0.9396, allocations: 5.055 MB / 0.6689 GB, free: 12.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009582/0.9492, allocations: 8.301 MB / 0.677 GB, free: 3.258 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.872e-05/0.9493, allocations: 24 kB / 0.6771 GB, free: 3.234 MB / 490.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.188/1.137, allocations: 8.575 MB / 0.6854 GB, free: 174.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-05/1.137, allocations: 38.72 kB / 0.6855 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/1.138, allocations: 93.34 kB / 0.6856 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001918/1.139, allocations: 0.8389 MB / 0.6864 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/1.144, allocations: 1.363 MB / 0.6877 GB, free: 174.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008343/1.152, allocations: 7.108 MB / 0.6947 GB, free: 170.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003654/1.156, allocations: 323.9 kB / 0.695 GB, free: 170.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004645/1.156, allocations: 306.2 kB / 0.6953 GB, free: 170.8 MB / 490.7 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.004556/1.161, allocations: 3.52 MB / 0.6987 GB, free: 169.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006473/1.161, allocations: 408 kB / 0.6991 GB, free: 169.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008042/1.169, allocations: 5.95 MB / 0.7049 GB, free: 166.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/1.17, allocations: 38.09 kB / 0.7049 GB, free: 166.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/1.17, allocations: 9.594 kB / 0.7049 GB, free: 166.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.515e-05/1.17, allocations: 21.84 kB / 0.705 GB, free: 166.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/1.188, allocations: 15.22 MB / 0.7198 GB, free: 157.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/1.189, allocations: 4 kB / 0.7198 GB, free: 157.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/1.191, allocations: 0.6912 MB / 0.7205 GB, free: 156.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/1.192, allocations: 0.6937 MB / 0.7212 GB, free: 156.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001945/1.193, allocations: 87.83 kB / 0.7213 GB, free: 156.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006599/1.199, allocations: 6.158 MB / 0.7273 GB, free: 150.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/1.199, allocations: 7.938 kB / 0.7273 GB, free: 150.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/1.21, allocations: 8.688 MB / 0.7358 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/1.211, allocations: 0.8979 MB / 0.7367 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004932/1.212, allocations: 73.53 kB / 0.7367 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/1.214, allocations: 183.7 kB / 0.7369 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004644/1.214, allocations: 270.7 kB / 0.7372 GB, free: 140.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000195/1.214, allocations: 112 kB / 0.7373 GB, free: 140.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00297/1.217, allocations: 2.384 MB / 0.7396 GB, free: 138.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.217, allocations: 0 / 0.7396 GB, free: 138.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004359/1.222, allocations: 1.546 MB / 0.7411 GB, free: 136.5 MB / 490.7 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.0004392/1.222, allocations: 270.4 kB / 0.7414 GB, free: 136.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008016/1.23, allocations: 6.456 MB / 0.7477 GB, free: 129.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.23, allocations: 0.5 kB / 0.7477 GB, free: 129.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/1.234, allocations: 2.935 MB / 0.7505 GB, free: 126.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005576/1.239, allocations: 0.9027 MB / 0.7514 GB, free: 126 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/1.261, allocations: 19.81 MB / 0.7708 GB, free: 106.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004432/1.265, allocations: 5.967 MB / 0.7766 GB, free: 100.1 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004534/1.27, allocations: 1.881 MB / 0.7784 GB, free: 98.18 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008314/1.27, allocations: 347.4 kB / 0.7788 GB, free: 97.84 MB / 490.7 MB Notification: Performance of SimCode: time 9.62e-07/1.27, allocations: 4 kB / 0.7788 GB, free: 97.83 MB / 490.7 MB Notification: Performance of Templates: time 0.08476/1.355, allocations: 59.67 MB / 0.837 GB, free: 38.58 MB / 490.7 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/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","../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