Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001542/0.001542, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001993/0.001993, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 58.22 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09661/0.09773, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1903/0.2881, allocations: 28.62 MB / 387.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01803/0.3062, allocations: 8.485 MB / 396 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006791/0.313, allocations: 216.4 kB / 396.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01963/0.3327, allocations: 8.165 MB / 404.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009365/0.342, allocations: 2.781 MB / 407.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005194/0.3473, allocations: 1.888 MB / 409.1 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01275/0.36, allocations: 10.02 MB / 419.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02903/0.3891, allocations: 21.36 MB / 440.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008829/0.398, allocations: 5.353 MB / 445.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009454/0.4075, allocations: 6.077 MB / 451.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003732/0.4112, allocations: 1.543 MB / 453.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005845/0.4171, allocations: 1.918 MB / 455.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004109/0.4212, allocations: 2.981 MB / 458.3 MB, free: 8.258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009404/0.4307, allocations: 5.844 MB / 464.2 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02372/0.4544, allocations: 20.65 MB / 484.8 MB, free: 13.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4545, allocations: 0 / 484.8 MB, free: 13.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4545, allocations: 0 / 484.8 MB, free: 13.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005096/0.455, allocations: 0 / 484.8 MB, free: 13.68 MB / 398.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.03362/0.4886, allocations: 11.87 MB / 496.7 MB, free: 1.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4887, allocations: 12.03 kB / 496.7 MB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03079/0.5195, allocations: 5.631 MB / 0.4906 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01613/0.5357, allocations: 6.305 MB / 0.4967 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007508/0.5364, allocations: 0.7024 MB / 0.4974 GB, free: 4.992 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004144/0.5406, allocations: 0.9256 MB / 0.4983 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03652/0.5771, allocations: 15.07 MB / 0.513 GB, free: 4.918 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004642/0.5776, allocations: 19.8 kB / 0.513 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002905/0.5805, allocations: 388 kB / 0.5134 GB, free: 4.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005961/0.5812, allocations: 0.5155 MB / 0.5139 GB, free: 4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.031/0.6122, allocations: 13.75 MB / 0.5273 GB, free: 6.227 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2722/0.8844, allocations: 47.51 MB / 0.5737 GB, free: 106.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/0.8982, allocations: 28.59 MB / 0.6016 GB, free: 77.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00428/0.9026, allocations: 3.082 MB / 0.6047 GB, free: 76.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003785/0.903, allocations: 327.3 kB / 0.605 GB, free: 75.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.903, allocations: 72.25 kB / 0.605 GB, free: 75.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 5.56e-06/0.903, allocations: 0 / 0.605 GB, free: 75.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02512/0.9282, allocations: 14.77 MB / 0.6195 GB, free: 63.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.9282, allocations: 95.8 kB / 0.6196 GB, free: 63.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004647/0.9329, allocations: 3.606 MB / 0.6231 GB, free: 60.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005116/0.9334, allocations: 85.7 kB / 0.6232 GB, free: 60.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001697/0.9351, allocations: 4.042 MB / 0.6271 GB, free: 56.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009747/0.9361, allocations: 1.343 MB / 0.6284 GB, free: 54.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.9374, allocations: 1.164 MB / 0.6295 GB, free: 53.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.9375, allocations: 301.1 kB / 0.6298 GB, free: 53.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003001/0.9405, allocations: 2.596 MB / 0.6324 GB, free: 50.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00383/0.9444, allocations: 5.089 MB / 0.6373 GB, free: 44.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00774/0.9521, allocations: 8.34 MB / 0.6455 GB, free: 34.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.707e-05/0.9522, allocations: 24 kB / 0.6455 GB, free: 34.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01185/0.9641, allocations: 8.635 MB / 0.6539 GB, free: 26.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.883e-05/0.9641, allocations: 43.94 kB / 0.654 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.9643, allocations: 83.98 kB / 0.6541 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001976/0.9662, allocations: 0.8505 MB / 0.6549 GB, free: 25.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003983/0.9702, allocations: 1.373 MB / 0.6562 GB, free: 23.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008422/0.9787, allocations: 7.675 MB / 0.6637 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00385/0.9825, allocations: 323.3 kB / 0.664 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006965/0.9833, allocations: 315.9 kB / 0.6643 GB, free: 15.36 MB / 446.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.004563/0.9878, allocations: 3.505 MB / 0.6678 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008377/0.9887, allocations: 411 kB / 0.6682 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008202/0.9969, allocations: 5.988 MB / 0.674 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.102e-05/0.9969, allocations: 40 kB / 0.674 GB, free: 5.371 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.997, allocations: 8 kB / 0.674 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.183e-05/0.997, allocations: 19.92 kB / 0.6741 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02407/1.021, allocations: 14.95 MB / 0.6887 GB, free: 6.336 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.021, allocations: 7.938 kB / 0.6887 GB, free: 6.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002687/1.024, allocations: 0.6904 MB / 0.6893 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/1.026, allocations: 0.7137 MB / 0.69 GB, free: 4.922 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004204/1.026, allocations: 83.98 kB / 0.6901 GB, free: 4.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009134/1.036, allocations: 6.708 MB / 0.6967 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/1.036, allocations: 8 kB / 0.6967 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/1.049, allocations: 8.758 MB / 0.7052 GB, free: 5.105 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.052, allocations: 0.8863 MB / 0.7061 GB, free: 4.195 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006224/1.052, allocations: 75.94 kB / 0.7062 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001914/1.054, allocations: 187.9 kB / 0.7063 GB, free: 3.938 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005603/1.055, allocations: 262.7 kB / 0.7066 GB, free: 3.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002484/1.055, allocations: 116 kB / 0.7067 GB, free: 3.566 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003813/1.059, allocations: 2.416 MB / 0.7091 GB, free: 1.164 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.5e-07/1.059, allocations: 0 / 0.7091 GB, free: 1.164 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.1788/1.238, allocations: 1.552 MB / 0.7106 GB, free: 153.3 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.000946/1.239, allocations: 258.9 kB / 0.7108 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01009/1.249, allocations: 6.528 MB / 0.7172 GB, free: 152.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.249, allocations: 3.812 kB / 0.7172 GB, free: 152.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005432/1.254, allocations: 2.951 MB / 0.7201 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00416/1.258, allocations: 0.9614 MB / 0.721 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02853/1.287, allocations: 15.72 MB / 0.7364 GB, free: 144.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008146/1.295, allocations: 5.971 MB / 0.7422 GB, free: 142.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005312/1.3, allocations: 1.889 MB / 0.7441 GB, free: 141.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/1.302, allocations: 344.2 kB / 0.7444 GB, free: 141.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/1.302, allocations: 0 / 0.7444 GB, free: 141.9 MB / 478.1 MB Notification: Performance of Templates: time 0.08876/1.391, allocations: 57.76 MB / 0.8008 GB, free: 89.02 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches