Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001291/0.001291, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001307/0.001308, allocations: 193.8 kB / 18.86 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 224.7 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 51.92 kB / 280.8 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09483/0.09619, allocations: 46.63 MB / 327.5 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02955/0.1258, allocations: 28.69 MB / 356.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01936/0.1452, allocations: 8.421 MB / 364.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007336/0.1526, allocations: 179.4 kB / 364.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01861/0.1713, allocations: 7.756 MB / 372.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.1819, allocations: 2.753 MB / 375.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006213/0.1882, allocations: 1.762 MB / 377 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2038/0.3919, allocations: 10.44 MB / 387.5 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03386/0.4259, allocations: 24.77 MB / 412.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0139/0.4398, allocations: 6.146 MB / 418.4 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.4508, allocations: 6.451 MB / 424.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005242/0.4561, allocations: 1.578 MB / 426.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006951/0.4631, allocations: 1.952 MB / 428.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005663/0.4688, allocations: 3.189 MB / 431.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0117/0.4805, allocations: 6.121 MB / 437.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01927/0.4998, allocations: 18.47 MB / 456.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.909e-06/0.4999, allocations: 7.984 kB / 456.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4999, allocations: 0 / 456.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006221/0.5005, allocations: 0 / 456.1 MB, free: 12.46 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03764/0.5382, allocations: 12.48 MB / 468.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.5382, allocations: 11.97 kB / 468.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04523/0.5835, allocations: 8.58 MB / 477.2 MB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/0.598, allocations: 5.879 MB / 483.1 MB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009402/0.599, allocations: 0.7488 MB / 483.8 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004567/0.6036, allocations: 0.9788 MB / 484.8 MB, free: 144 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04317/0.6468, allocations: 16.58 MB / 0.4896 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003995/0.6472, allocations: 14.06 kB / 0.4897 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003467/0.6507, allocations: 419.7 kB / 0.4901 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007274/0.6514, allocations: 0.5989 MB / 0.4906 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03507/0.6865, allocations: 15.96 MB / 0.5062 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4471/1.134, allocations: 52.1 MB / 0.5571 GB, free: 121 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02528/1.159, allocations: 52.26 MB / 0.6082 GB, free: 71.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005466/1.164, allocations: 3.464 MB / 0.6115 GB, free: 70.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01452/1.179, allocations: 9.414 MB / 0.6207 GB, free: 65.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.557e-05/1.179, allocations: 60.47 kB / 0.6208 GB, free: 65.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 6.011e-06/1.179, allocations: 3.938 kB / 0.6208 GB, free: 65.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02381/1.203, allocations: 12.88 MB / 0.6334 GB, free: 58.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/1.203, allocations: 77.16 kB / 0.6334 GB, free: 58.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005643/1.209, allocations: 4.069 MB / 0.6374 GB, free: 56.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005341/1.209, allocations: 67.98 kB / 0.6375 GB, free: 55.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/1.211, allocations: 4.631 MB / 0.642 GB, free: 51.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/1.213, allocations: 0.9923 MB / 0.643 GB, free: 51.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/1.214, allocations: 1.235 MB / 0.6442 GB, free: 50.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.871e-05/1.214, allocations: 301.1 kB / 0.6445 GB, free: 50.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/1.217, allocations: 2.447 MB / 0.6469 GB, free: 48.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004025/1.221, allocations: 5.596 MB / 0.6523 GB, free: 42.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007773/1.229, allocations: 8.69 MB / 0.6608 GB, free: 32.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.509e-05/1.229, allocations: 32 kB / 0.6608 GB, free: 32.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01372/1.243, allocations: 8.748 MB / 0.6694 GB, free: 23.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.676e-05/1.243, allocations: 52.94 kB / 0.6694 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/1.243, allocations: 114.6 kB / 0.6695 GB, free: 23.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/1.245, allocations: 0.8563 MB / 0.6704 GB, free: 22.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004307/1.25, allocations: 1.4 MB / 0.6717 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008438/1.258, allocations: 7.502 MB / 0.6791 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004914/1.263, allocations: 347.3 kB / 0.6794 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/1.264, allocations: 356 kB / 0.6797 GB, free: 12.55 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005846/1.27, allocations: 3.676 MB / 0.6833 GB, free: 8.859 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.271, allocations: 414.9 kB / 0.6837 GB, free: 8.449 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007322/1.278, allocations: 5.065 MB / 0.6887 GB, free: 3.328 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/1.278, allocations: 28 kB / 0.6887 GB, free: 3.301 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/1.278, allocations: 8 kB / 0.6887 GB, free: 3.293 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/1.278, allocations: 19.88 kB / 0.6887 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02066/1.299, allocations: 12.19 MB / 0.7006 GB, free: 6.996 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/1.299, allocations: 4 kB / 0.7006 GB, free: 6.992 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002199/1.301, allocations: 0.511 MB / 0.7011 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/1.303, allocations: 0.7074 MB / 0.7018 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004877/1.304, allocations: 67.92 kB / 0.7019 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2049/1.509, allocations: 6.628 MB / 0.7084 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/1.509, allocations: 5.812 kB / 0.7084 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/1.521, allocations: 7.321 MB / 0.7155 GB, free: 147.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002288/1.523, allocations: 0.7995 MB / 0.7163 GB, free: 146.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009097/1.524, allocations: 56.2 kB / 0.7164 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/1.526, allocations: 165.5 kB / 0.7165 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005328/1.527, allocations: 202 kB / 0.7167 GB, free: 146.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1.527, allocations: 86.39 kB / 0.7168 GB, free: 146.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004871/1.532, allocations: 2.687 MB / 0.7194 GB, free: 145.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.532, allocations: 0 / 0.7194 GB, free: 145.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006957/1.539, allocations: 1.543 MB / 0.7209 GB, free: 145.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008127/1.54, allocations: 227.5 kB / 0.7211 GB, free: 145.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01812/1.558, allocations: 9.102 MB / 0.73 GB, free: 143.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.557e-06/1.558, allocations: 2 kB / 0.73 GB, free: 143.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004187/1.562, allocations: 2.462 MB / 0.7324 GB, free: 142 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004906/1.567, allocations: 0.9529 MB / 0.7334 GB, free: 141.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02833/1.595, allocations: 20.13 MB / 0.753 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005777/1.601, allocations: 6.019 MB / 0.7589 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/1.603, allocations: 385.6 kB / 0.7593 GB, free: 124.9 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/1.603, allocations: 0 / 0.7593 GB, free: 124.9 MB / 462.1 MB Notification: Performance of Templates: time 0.35/1.953, allocations: 155 MB / 0.9106 GB, free: 133.7 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches