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.001453/0.001453, allocations: 113.2 kB / 18.4 MB, free: 4.699 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.001759/0.001759, allocations: 189.2 kB / 19.33 MB, free: 3.781 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.443/1.443, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001244/0.001244, allocations: 55.92 kB / 329.2 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09702, allocations: 46.61 MB / 375.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2509/0.348, allocations: 29.21 MB / 405.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02309/0.3711, allocations: 8.54 MB / 413.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008426/0.3796, allocations: 181.5 kB / 413.8 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02123/0.4009, allocations: 8.187 MB / 422 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.414, allocations: 3.042 MB / 425 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00697/0.421, allocations: 1.894 MB / 426.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0161/0.4371, allocations: 10.51 MB / 437.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03891/0.476, allocations: 21.47 MB / 458.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0108/0.4869, allocations: 5.61 MB / 464.5 MB, free: 6.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0123/0.4993, allocations: 6.365 MB / 470.9 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005521/0.5048, allocations: 1.582 MB / 472.4 MB, free: 14.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00782/0.5127, allocations: 1.933 MB / 474.4 MB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005956/0.5187, allocations: 3.187 MB / 477.6 MB, free: 9.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01274/0.5314, allocations: 6.128 MB / 483.7 MB, free: 3.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02684/0.5583, allocations: 21.19 MB / 0.493 GB, free: 14.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/0.5584, allocations: 0 / 0.493 GB, free: 14.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5584, allocations: 0 / 0.493 GB, free: 14.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006451/0.559, allocations: 0 / 0.493 GB, free: 14.44 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.041/0.6001, allocations: 12.44 MB / 0.5052 GB, free: 1.906 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.6001, allocations: 12.03 kB / 0.5052 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04769/0.6478, allocations: 8.61 MB / 0.5136 GB, free: 9.262 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01561/0.6635, allocations: 5.903 MB / 0.5194 GB, free: 3.297 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009751/0.6645, allocations: 0.7386 MB / 0.5201 GB, free: 2.555 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004914/0.6694, allocations: 0.9725 MB / 0.521 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04495/0.7144, allocations: 16.56 MB / 0.5372 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000567/0.715, allocations: 15.81 kB / 0.5372 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003642/0.7187, allocations: 415.9 kB / 0.5376 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007658/0.7195, allocations: 0.6144 MB / 0.5382 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.426/1.145, allocations: 15.96 MB / 0.5538 GB, free: 134.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1006/1.246, allocations: 51.58 MB / 0.6042 GB, free: 103.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02664/1.273, allocations: 52.26 MB / 0.6552 GB, free: 49.26 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005459/1.278, allocations: 3.474 MB / 0.6586 GB, free: 47.48 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01666/1.295, allocations: 9.381 MB / 0.6678 GB, free: 39.29 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.295, allocations: 60.62 kB / 0.6678 GB, free: 39.22 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.691e-06/1.295, allocations: 0 / 0.6678 GB, free: 39.22 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02666/1.322, allocations: 12.94 MB / 0.6805 GB, free: 26.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/1.322, allocations: 81.59 kB / 0.6806 GB, free: 26.07 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007081/1.329, allocations: 4.064 MB / 0.6845 GB, free: 21.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006166/1.33, allocations: 69.7 kB / 0.6846 GB, free: 21.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.332, allocations: 4.636 MB / 0.6891 GB, free: 17.25 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/1.333, allocations: 0.992 MB / 0.6901 GB, free: 16.26 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002819/1.336, allocations: 1.233 MB / 0.6913 GB, free: 15.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.695e-05/1.336, allocations: 305.1 kB / 0.6916 GB, free: 14.72 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003559/1.34, allocations: 2.448 MB / 0.694 GB, free: 12.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005028/1.345, allocations: 5.599 MB / 0.6994 GB, free: 5.129 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/1.355, allocations: 8.686 MB / 0.7079 GB, free: 10.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001206/1.355, allocations: 36 kB / 0.708 GB, free: 10.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.0188/1.374, allocations: 8.757 MB / 0.7165 GB, free: 2.023 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/1.374, allocations: 55.94 kB / 0.7166 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002317/1.374, allocations: 108 kB / 0.7167 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002596/1.377, allocations: 0.8719 MB / 0.7175 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005115/1.382, allocations: 1.404 MB / 0.7189 GB, free: 15.59 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/1.394, allocations: 7.562 MB / 0.7263 GB, free: 7.871 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005062/1.399, allocations: 351.3 kB / 0.7266 GB, free: 7.527 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00132/1.4, allocations: 344 kB / 0.7269 GB, free: 7.191 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.008994/1.409, allocations: 3.68 MB / 0.7305 GB, free: 3.496 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001521/1.411, allocations: 414.9 kB / 0.7309 GB, free: 3.086 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/1.422, allocations: 5.074 MB / 0.7359 GB, free: 13.95 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-05/1.422, allocations: 32 kB / 0.7359 GB, free: 13.92 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.311e-05/1.422, allocations: 8 kB / 0.7359 GB, free: 13.91 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-05/1.422, allocations: 19.94 kB / 0.7359 GB, free: 13.89 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02725/1.449, allocations: 12.21 MB / 0.7479 GB, free: 1.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.643e-05/1.45, allocations: 8.094 kB / 0.7479 GB, free: 1.582 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/1.452, allocations: 0.5149 MB / 0.7484 GB, free: 1.066 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/1.454, allocations: 0.7031 MB / 0.7491 GB, free: 368 kB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004861/1.455, allocations: 63.98 kB / 0.7491 GB, free: 304 kB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2529/1.707, allocations: 6.706 MB / 0.7557 GB, free: 172.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.708, allocations: 7.688 kB / 0.7557 GB, free: 172.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/1.723, allocations: 7.342 MB / 0.7628 GB, free: 169.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002621/1.726, allocations: 0.8056 MB / 0.7636 GB, free: 169.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/1.727, allocations: 54.64 kB / 0.7637 GB, free: 169.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003126/1.731, allocations: 167.8 kB / 0.7638 GB, free: 169.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008805/1.731, allocations: 207.7 kB / 0.764 GB, free: 169 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004594/1.732, allocations: 87.42 kB / 0.7641 GB, free: 169 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007346/1.739, allocations: 2.677 MB / 0.7667 GB, free: 168 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.41e-07/1.739, allocations: 0 / 0.7667 GB, free: 168 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009666/1.749, allocations: 1.544 MB / 0.7682 GB, free: 167.9 MB / 0.5138 GB 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.001157/1.75, allocations: 225.5 kB / 0.7685 GB, free: 167.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01305/1.763, allocations: 6.131 MB / 0.7744 GB, free: 165.4 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.763, allocations: 0 / 0.7744 GB, free: 165.4 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005141/1.768, allocations: 2.484 MB / 0.7769 GB, free: 164.4 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007933/1.776, allocations: 0.9568 MB / 0.7778 GB, free: 164 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03475/1.811, allocations: 15.84 MB / 0.7933 GB, free: 155.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/1.822, allocations: 6.012 MB / 0.7992 GB, free: 150.7 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001832/1.824, allocations: 383.4 kB / 0.7995 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of SimCode: time 1.212e-06/1.824, allocations: 0.7656 kB / 0.7995 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of Templates: time 0.4123/2.236, allocations: 155.8 MB / 0.9517 GB, free: 164 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