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.001039/0.001039, allocations: 101.4 kB / 18.4 MB, free: 4.66 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.0009992/0.0009992, allocations: 191.3 kB / 19.34 MB, free: 3.734 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.247/1.247, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001478/0.001478, allocations: 55.91 kB / 329.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07193/0.07342, allocations: 46.62 MB / 375.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.171/0.2445, allocations: 29.2 MB / 405.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01676/0.2613, allocations: 8.538 MB / 413.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004749/0.266, allocations: 182.4 kB / 413.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01811/0.2842, allocations: 8.202 MB / 422 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008968/0.2932, allocations: 3.025 MB / 425 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004948/0.2981, allocations: 1.907 MB / 426.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.3099, allocations: 10.5 MB / 437.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02694/0.3368, allocations: 21.45 MB / 458.9 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006683/0.3435, allocations: 5.61 MB / 464.5 MB, free: 6.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008752/0.3523, allocations: 6.373 MB / 470.9 MB, free: 432 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002434/0.3547, allocations: 1.582 MB / 472.4 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003847/0.3586, allocations: 1.929 MB / 474.4 MB, free: 12.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002391/0.361, allocations: 3.187 MB / 477.6 MB, free: 9.715 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005837/0.3668, allocations: 6.128 MB / 483.7 MB, free: 3.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01827/0.3851, allocations: 21.19 MB / 0.493 GB, free: 14.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3852, allocations: 4 kB / 0.493 GB, free: 14.3 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3852, allocations: 0 / 0.493 GB, free: 14.3 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003341/0.3855, allocations: 0 / 0.493 GB, free: 14.3 MB / 430.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.02769/0.4132, allocations: 12.44 MB / 0.5052 GB, free: 1.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.4133, allocations: 11.97 kB / 0.5052 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0463/0.4596, allocations: 8.599 MB / 0.5136 GB, free: 9.137 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.4699, allocations: 5.903 MB / 0.5194 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005627/0.4705, allocations: 0.7386 MB / 0.5201 GB, free: 2.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002187/0.4727, allocations: 0.9725 MB / 0.521 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02852/0.5012, allocations: 16.57 MB / 0.5372 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002145/0.5015, allocations: 23.78 kB / 0.5372 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001272/0.5027, allocations: 408 kB / 0.5376 GB, free: 384 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005706/0.5033, allocations: 0.6067 MB / 0.5382 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3134/0.8167, allocations: 15.98 MB / 0.5538 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0654/0.8821, allocations: 51.58 MB / 0.6042 GB, free: 103.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02279/0.9049, allocations: 52.27 MB / 0.6552 GB, free: 49.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003957/0.9089, allocations: 3.468 MB / 0.6586 GB, free: 47.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01249/0.9214, allocations: 9.38 MB / 0.6678 GB, free: 38.99 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.9215, allocations: 68.56 kB / 0.6679 GB, free: 38.91 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 4.028e-06/0.9215, allocations: 0 / 0.6679 GB, free: 38.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02191/0.9434, allocations: 12.93 MB / 0.6805 GB, free: 25.86 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.9434, allocations: 81.59 kB / 0.6806 GB, free: 25.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004868/0.9483, allocations: 4.064 MB / 0.6845 GB, free: 21.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001683/0.9485, allocations: 77.69 kB / 0.6846 GB, free: 21.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00169/0.9502, allocations: 4.626 MB / 0.6891 GB, free: 16.95 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005221/0.9507, allocations: 0.9939 MB / 0.6901 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/0.9521, allocations: 1.229 MB / 0.6913 GB, free: 14.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.052e-05/0.9521, allocations: 305.1 kB / 0.6916 GB, free: 14.42 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00296/0.9551, allocations: 2.456 MB / 0.694 GB, free: 11.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00396/0.9591, allocations: 5.599 MB / 0.6995 GB, free: 4.824 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00868/0.9677, allocations: 8.686 MB / 0.7079 GB, free: 10.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.107e-05/0.9678, allocations: 28 kB / 0.708 GB, free: 10.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01382/0.9817, allocations: 8.763 MB / 0.7165 GB, free: 1.723 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.318e-05/0.9817, allocations: 52 kB / 0.7166 GB, free: 1.672 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/0.9819, allocations: 111.9 kB / 0.7167 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/0.9842, allocations: 0.8735 MB / 0.7175 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004409/0.9886, allocations: 1.404 MB / 0.7189 GB, free: 15.28 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.9992, allocations: 7.562 MB / 0.7263 GB, free: 7.57 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003606/1.003, allocations: 351.3 kB / 0.7266 GB, free: 7.227 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005024/1.003, allocations: 348 kB / 0.7269 GB, free: 6.887 MB / 0.4982 GB 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.005165/1.008, allocations: 3.677 MB / 0.7305 GB, free: 3.195 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008297/1.009, allocations: 410.9 kB / 0.7309 GB, free: 2.789 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008729/1.018, allocations: 5.083 MB / 0.7359 GB, free: 13.65 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.64e-05/1.018, allocations: 15.94 kB / 0.7359 GB, free: 13.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/1.018, allocations: 0 / 0.7359 GB, free: 13.64 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/1.019, allocations: 0.7965 MB / 0.7367 GB, free: 12.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005464/1.02, allocations: 52 kB / 0.7367 GB, free: 12.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/1.022, allocations: 159.8 kB / 0.7369 GB, free: 12.61 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/1.022, allocations: 218 kB / 0.7371 GB, free: 12.39 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00803/1.03, allocations: 4.618 MB / 0.7416 GB, free: 7.789 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008236/1.038, allocations: 5.909 MB / 0.7474 GB, free: 1.805 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.1685/1.207, allocations: 1.817 MB / 0.7492 GB, free: 173.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005167/1.212, allocations: 2.675 MB / 0.7518 GB, free: 173.7 MB / 0.5138 GB Notification: Performance of Backend: time 6.92e-07/1.212, allocations: 2.156 kB / 0.7518 GB, free: 173.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009755/1.222, allocations: 4.822 MB / 0.7565 GB, free: 172.9 MB / 0.5138 GB Notification: Performance of SimCode: time 0.02535/1.247, allocations: 15.64 MB / 0.7718 GB, free: 165.9 MB / 0.5138 GB Notification: Performance of Templates: time 0.09886/1.346, allocations: 69.98 MB / 0.8401 GB, free: 111.2 MB / 0.5138 GB 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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