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.0009916/0.0009917, allocations: 101.1 kB / 16.5 MB, free: 6.641 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.0009625/0.0009625, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.273/1.273, allocations: 222.9 MB / 241.1 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.91 kB / 300 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07396/0.07509, allocations: 49.44 MB / 349.4 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1647/0.2398, allocations: 28.06 MB / 377.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.2535, allocations: 8.332 MB / 385.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004862/0.2584, allocations: 204.5 kB / 386 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01509/0.2735, allocations: 7.709 MB / 393.7 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00749/0.281, allocations: 2.55 MB / 396.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003855/0.2848, allocations: 1.748 MB / 398 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.2951, allocations: 9.858 MB / 407.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02243/0.3176, allocations: 17.82 MB / 425.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005765/0.3234, allocations: 4.673 MB / 430.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006815/0.3302, allocations: 5.788 MB / 436.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001748/0.332, allocations: 1.047 MB / 437.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003035/0.335, allocations: 1.406 MB / 438.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001844/0.3369, allocations: 2.473 MB / 441.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005093/0.342, allocations: 5.337 MB / 446.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01588/0.3579, allocations: 20.16 MB / 466.6 MB, free: 1.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3579, allocations: 3.984 kB / 466.6 MB, free: 1.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3579, allocations: 4 kB / 466.6 MB, free: 1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003398/0.3583, allocations: 4 kB / 466.6 MB, free: 0.9961 MB / 366.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.02724/0.3855, allocations: 11.87 MB / 478.5 MB, free: 5.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3856, allocations: 12.03 kB / 478.5 MB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0295/0.4151, allocations: 5.604 MB / 484.1 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.427, allocations: 6.121 MB / 490.2 MB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005251/0.4276, allocations: 0.6986 MB / 490.9 MB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002013/0.4296, allocations: 0.9295 MB / 491.8 MB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02597/0.4556, allocations: 15.07 MB / 0.495 GB, free: 8.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001653/0.4558, allocations: 15.81 kB / 0.495 GB, free: 8.422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009308/0.4567, allocations: 396 kB / 0.4954 GB, free: 8.035 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004326/0.4572, allocations: 0.5117 MB / 0.4959 GB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02085/0.478, allocations: 13.74 MB / 0.5093 GB, free: 9.754 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3218/0.7999, allocations: 47.63 MB / 0.5558 GB, free: 97.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.8128, allocations: 28.58 MB / 0.5837 GB, free: 68.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003237/0.816, allocations: 3.076 MB / 0.5867 GB, free: 66.92 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002555/0.8163, allocations: 240.1 kB / 0.587 GB, free: 66.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.8163, allocations: 76.7 kB / 0.5871 GB, free: 66.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 5.199e-06/0.8164, allocations: 0 / 0.5871 GB, free: 66.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02297/0.8393, allocations: 14.72 MB / 0.6014 GB, free: 54.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.8394, allocations: 90.48 kB / 0.6015 GB, free: 54.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004477/0.8439, allocations: 3.594 MB / 0.605 GB, free: 51.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.8441, allocations: 89.7 kB / 0.6051 GB, free: 51.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/0.8456, allocations: 4.042 MB / 0.6091 GB, free: 47.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000694/0.8463, allocations: 1.342 MB / 0.6104 GB, free: 45.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/0.8476, allocations: 1.16 MB / 0.6115 GB, free: 44.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.608e-05/0.8477, allocations: 309.1 kB / 0.6118 GB, free: 44.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003032/0.8507, allocations: 2.588 MB / 0.6143 GB, free: 41.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004404/0.8551, allocations: 5.083 MB / 0.6193 GB, free: 35.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007582/0.8627, allocations: 8.336 MB / 0.6274 GB, free: 25.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.74e-05/0.8628, allocations: 24 kB / 0.6275 GB, free: 25.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.0114/0.8742, allocations: 8.624 MB / 0.6359 GB, free: 17.21 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.33e-05/0.8743, allocations: 40 kB / 0.6359 GB, free: 17.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.831e-05/0.8744, allocations: 84 kB / 0.636 GB, free: 17.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00206/0.8764, allocations: 0.8303 MB / 0.6368 GB, free: 16.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00398/0.8804, allocations: 1.376 MB / 0.6381 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008363/0.8888, allocations: 7.099 MB / 0.6451 GB, free: 7.645 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/0.8921, allocations: 331.2 kB / 0.6454 GB, free: 7.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000477/0.8925, allocations: 311.9 kB / 0.6457 GB, free: 7.016 MB / 430.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.004265/0.8968, allocations: 3.517 MB / 0.6491 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008604/0.8977, allocations: 399.1 kB / 0.6495 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009498/0.9072, allocations: 5.98 MB / 0.6553 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/0.9072, allocations: 40 kB / 0.6554 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/0.9073, allocations: 8 kB / 0.6554 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.638e-05/0.9073, allocations: 19.92 kB / 0.6554 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02419/0.9315, allocations: 15.25 MB / 0.6703 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.9315, allocations: 4 kB / 0.6703 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002658/0.9342, allocations: 0.6943 MB / 0.671 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001931/0.9361, allocations: 0.6977 MB / 0.6717 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000254/0.9364, allocations: 83.98 kB / 0.6717 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008423/0.9448, allocations: 6.15 MB / 0.6778 GB, free: 5.812 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.9449, allocations: 4 kB / 0.6778 GB, free: 5.809 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/0.9575, allocations: 8.731 MB / 0.6863 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/0.9593, allocations: 0.8824 MB / 0.6871 GB, free: 12.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006838/0.96, allocations: 87.98 kB / 0.6872 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/0.9619, allocations: 179.8 kB / 0.6874 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004989/0.9625, allocations: 270.7 kB / 0.6877 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002404/0.9627, allocations: 108 kB / 0.6878 GB, free: 11.41 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003907/0.9666, allocations: 2.412 MB / 0.6901 GB, free: 9.016 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9666, allocations: 0 / 0.6901 GB, free: 9.016 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005856/0.9725, allocations: 1.549 MB / 0.6916 GB, free: 7.469 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.0006556/0.9732, allocations: 276.5 kB / 0.6919 GB, free: 7.203 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01111/0.9843, allocations: 6.493 MB / 0.6982 GB, free: 0.707 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.9843, allocations: 1.875 kB / 0.6982 GB, free: 0.707 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1735/1.158, allocations: 2.931 MB / 0.7011 GB, free: 158.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00443/1.162, allocations: 0.9021 MB / 0.702 GB, free: 158.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02533/1.188, allocations: 19.77 MB / 0.7213 GB, free: 149.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005026/1.193, allocations: 5.978 MB / 0.7271 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004585/1.197, allocations: 1.88 MB / 0.729 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009277/1.198, allocations: 353.3 kB / 0.7293 GB, free: 146.7 MB / 478.1 MB Notification: Performance of SimCode: time 8.61e-07/1.198, allocations: 0 / 0.7293 GB, free: 146.7 MB / 478.1 MB Notification: Performance of Templates: time 0.08562/1.284, allocations: 60.56 MB / 0.7884 GB, free: 94.65 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/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