Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 179.4 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.237/1.237, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007405/0.0007403, allocations: 103.6 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002698, allocations: 8 kB / 327 MB, free: 168 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1857, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.01933/0.205, allocations: 25.42 MB / 400 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01374/0.2189, allocations: 7.871 MB / 407.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003106/0.222, allocations: 171.4 kB / 408 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002782/0.2248, allocations: 1.383 MB / 409.4 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005201/0.23, allocations: 2.516 MB / 411.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002454/0.2325, allocations: 1.249 MB / 413.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009101/0.2416, allocations: 11.49 MB / 424.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02533/0.2669, allocations: 17.45 MB / 442.1 MB, free: 13.07 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005191/0.2721, allocations: 4.034 MB / 446.2 MB, free: 9.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005501/0.2777, allocations: 4.697 MB / 450.9 MB, free: 4.305 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001132/0.2788, allocations: 0.6094 MB / 451.5 MB, free: 3.695 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.2811, allocations: 0.9566 MB / 452.4 MB, free: 2.738 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001454/0.2826, allocations: 1.974 MB / 454.4 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00223/0.2848, allocations: 2.04 MB / 456.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.2987, allocations: 17.82 MB / 474.2 MB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2988, allocations: 3.984 kB / 474.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.2988, allocations: 0 / 474.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003785/0.2992, allocations: 0 / 474.3 MB, free: 12.83 MB / 362.7 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.02429/0.3235, allocations: 10.35 MB / 484.6 MB, free: 2.387 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3235, allocations: 8.031 kB / 484.6 MB, free: 2.379 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04427/0.3678, allocations: 8.614 MB / 493.2 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01183/0.3797, allocations: 5.815 MB / 499 MB, free: 3.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004857/0.3802, allocations: 0.7504 MB / 499.8 MB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001947/0.3821, allocations: 0.9802 MB / 0.489 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3045/0.6867, allocations: 16.48 MB / 0.5051 GB, free: 85.76 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002118/0.6869, allocations: 15.38 kB / 0.5051 GB, free: 85.75 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001035/0.688, allocations: 411.9 kB / 0.5055 GB, free: 85.45 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005296/0.6885, allocations: 0.6082 MB / 0.5061 GB, free: 85.38 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02377/0.7123, allocations: 15.87 MB / 0.5216 GB, free: 74.52 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06105/0.7734, allocations: 52.23 MB / 0.5726 GB, free: 21.44 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02785/0.8013, allocations: 52.21 MB / 0.6236 GB, free: 10.3 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005252/0.8066, allocations: 3.449 MB / 0.627 GB, free: 6.84 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/0.8206, allocations: 9.407 MB / 0.6362 GB, free: 13.42 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.8207, allocations: 68.62 kB / 0.6362 GB, free: 13.34 MB / 442.8 MB Notification: Performance of pre-optimization done (n=270): time 3.637e-06/0.8207, allocations: 0 / 0.6362 GB, free: 13.34 MB / 442.8 MB Notification: Performance of matching and sorting (n=278): time 0.02759/0.8483, allocations: 13.75 MB / 0.6497 GB, free: 15.45 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.8484, allocations: 85.59 kB / 0.6498 GB, free: 15.36 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005088/0.8535, allocations: 4.025 MB / 0.6537 GB, free: 11.3 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.8537, allocations: 73.7 kB / 0.6538 GB, free: 11.23 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.8562, allocations: 4.632 MB / 0.6583 GB, free: 6.57 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006895/0.8569, allocations: 0.9924 MB / 0.6592 GB, free: 5.586 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.8572, allocations: 124 kB / 0.6594 GB, free: 5.465 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000306/0.8575, allocations: 0.5464 MB / 0.6599 GB, free: 4.91 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00335/0.8608, allocations: 2.428 MB / 0.6623 GB, free: 2.477 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1662/1.027, allocations: 5.576 MB / 0.6677 GB, free: 153.5 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004567/1.032, allocations: 3.714 MB / 0.6713 GB, free: 152.5 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.151e-05/1.032, allocations: 31.62 kB / 0.6714 GB, free: 152.5 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01187/1.044, allocations: 8.688 MB / 0.6799 GB, free: 149.2 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-05/1.044, allocations: 50.5 kB / 0.6799 GB, free: 149.2 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001388/1.044, allocations: 110.4 kB / 0.68 GB, free: 149.2 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002153/1.046, allocations: 0.8659 MB / 0.6809 GB, free: 149.1 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/1.05, allocations: 1.399 MB / 0.6822 GB, free: 148.9 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008376/1.059, allocations: 6.985 MB / 0.689 GB, free: 145.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003581/1.062, allocations: 347.1 kB / 0.6894 GB, free: 145 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004278/1.063, allocations: 355.6 kB / 0.6897 GB, free: 144.9 MB / 458.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004872/1.067, allocations: 3.676 MB / 0.6933 GB, free: 143.2 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006128/1.068, allocations: 404.9 kB / 0.6937 GB, free: 143.2 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006935/1.075, allocations: 5.06 MB / 0.6986 GB, free: 141.1 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/1.075, allocations: 29.28 kB / 0.6987 GB, free: 141.1 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/1.075, allocations: 7.656 kB / 0.6987 GB, free: 141.1 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/1.075, allocations: 17.92 kB / 0.6987 GB, free: 141.1 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/1.09, allocations: 12.18 MB / 0.7106 GB, free: 133.9 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.639e-06/1.09, allocations: 4.438 kB / 0.7106 GB, free: 133.9 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/1.092, allocations: 0.5203 MB / 0.7111 GB, free: 133.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001622/1.093, allocations: 0.6799 MB / 0.7117 GB, free: 132.9 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/1.094, allocations: 71.97 kB / 0.7118 GB, free: 132.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006501/1.1, allocations: 6.147 MB / 0.7178 GB, free: 126.6 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.1, allocations: 4 kB / 0.7178 GB, free: 126.6 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008319/1.108, allocations: 7.292 MB / 0.7249 GB, free: 119.3 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/1.11, allocations: 0.8238 MB / 0.7257 GB, free: 118.4 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/1.11, allocations: 55.98 kB / 0.7258 GB, free: 118.4 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/1.112, allocations: 167.8 kB / 0.726 GB, free: 118.2 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/1.112, allocations: 206 kB / 0.7262 GB, free: 118 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001581/1.112, allocations: 83.98 kB / 0.7262 GB, free: 117.9 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.003085/1.115, allocations: 2.641 MB / 0.7288 GB, free: 115.3 MB / 458.8 MB Notification: Performance of sort global known variables: time 6.21e-07/1.115, allocations: 0 / 0.7288 GB, free: 115.3 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004474/1.12, allocations: 1.551 MB / 0.7303 GB, free: 113.7 MB / 458.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003733/1.12, allocations: 230.5 kB / 0.7305 GB, free: 113.5 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.007282/1.127, allocations: 6.069 MB / 0.7365 GB, free: 107.4 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.127, allocations: 4 kB / 0.7365 GB, free: 107.4 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00285/1.13, allocations: 2.461 MB / 0.7389 GB, free: 105 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003379/1.134, allocations: 0.9018 MB / 0.7398 GB, free: 104.1 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/1.155, allocations: 19.29 MB / 0.7586 GB, free: 84.75 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004339/1.159, allocations: 6.017 MB / 0.7645 GB, free: 78.7 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/1.161, allocations: 383.3 kB / 0.7648 GB, free: 78.32 MB / 458.8 MB Notification: Performance of SimCode: time 6.92e-07/1.161, allocations: 1.531 kB / 0.7648 GB, free: 78.32 MB / 458.8 MB Notification: Performance of Templates: time 0.3527/1.513, allocations: 154 MB / 0.9152 GB, free: 71.03 MB / 458.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins/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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches