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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001779/0.001779, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 225.6 MB / 234.8 MB, free: 3.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001015/0.001015, allocations: 105.2 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.69e-05/1.685e-05, allocations: 0 / 343.7 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 51.48 MB / 395.2 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5264, allocations: 137.1 MB / 0.5198 GB, free: 4.719 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.5267, allocations: 107.1 kB / 0.5199 GB, free: 4.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/1.726, allocations: 334.9 MB / 0.8469 GB, free: 33.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.303e-06/1.726, allocations: 0 / 0.8469 GB, free: 33.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007493/1.726, allocations: 204.4 kB / 0.8471 GB, free: 33.46 MB / 442.7 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.02946/1.756, allocations: 8.448 MB / 0.8554 GB, free: 29.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.888e-05/1.756, allocations: 14.22 kB / 0.8554 GB, free: 29.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02236/1.778, allocations: 3.908 MB / 0.8592 GB, free: 28.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01938/1.798, allocations: 7.333 MB / 0.8663 GB, free: 25.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001007/1.799, allocations: 296.8 kB / 0.8666 GB, free: 25.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00483/1.804, allocations: 0.5253 MB / 0.8671 GB, free: 25.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02543/1.829, allocations: 11.37 MB / 0.8782 GB, free: 18.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03687/1.866, allocations: 13.29 MB / 0.8912 GB, free: 7.211 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006112/1.867, allocations: 23.7 kB / 0.8912 GB, free: 7.191 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003131/1.87, allocations: 11.95 kB / 0.8913 GB, free: 7.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007912/1.871, allocations: 0.683 MB / 0.8919 GB, free: 6.582 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5487/2.419, allocations: 47.66 MB / 0.9385 GB, free: 37.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/2.438, allocations: 28.19 MB / 0.966 GB, free: 28.71 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005043/2.443, allocations: 3.03 MB / 0.969 GB, free: 28.69 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005324/2.444, allocations: 324.2 kB / 0.9693 GB, free: 28.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/2.444, allocations: 74.94 kB / 0.9693 GB, free: 28.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 6.763e-06/2.444, allocations: 0 / 0.9693 GB, free: 28.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.03684/2.481, allocations: 14.12 MB / 0.9831 GB, free: 26.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/2.481, allocations: 93.25 kB / 0.9832 GB, free: 26.64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005685/2.487, allocations: 2.812 MB / 0.986 GB, free: 26.37 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006643/2.487, allocations: 28.67 kB / 0.986 GB, free: 26.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002473/2.49, allocations: 4.037 MB / 0.9899 GB, free: 24.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/2.491, allocations: 1.292 MB / 0.9912 GB, free: 23.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/2.491, allocations: 0 / 0.9912 GB, free: 23.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003452/2.492, allocations: 0.5473 MB / 0.9917 GB, free: 23.06 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003764/2.495, allocations: 2.537 MB / 0.9942 GB, free: 23.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004815/2.5, allocations: 4.966 MB / 0.9991 GB, free: 20.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009854/2.51, allocations: 4.711 MB / 1.004 GB, free: 19.92 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/2.51, allocations: 21.59 kB / 1.004 GB, free: 19.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02275/2.533, allocations: 9.066 MB / 1.013 GB, free: 19.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000127/2.533, allocations: 39.5 kB / 1.013 GB, free: 19.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/2.533, allocations: 92.48 kB / 1.013 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002456/2.536, allocations: 0.9208 MB / 1.014 GB, free: 19.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005509/2.541, allocations: 1.388 MB / 1.015 GB, free: 19.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/2.553, allocations: 7.683 MB / 1.022 GB, free: 16.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006029/2.559, allocations: 246.9 kB / 1.023 GB, free: 16.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/2.561, allocations: 306.2 kB / 1.023 GB, free: 16.69 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 708 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002304/2.563, allocations: 327.7 kB / 1.023 GB, free: 16.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001554/2.565, allocations: 396 kB / 1.024 GB, free: 16.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01429/2.579, allocations: 6.797 MB / 1.03 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.26e-05/2.579, allocations: 43.97 kB / 1.03 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.216e-05/2.579, allocations: 7.344 kB / 1.03 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.404e-05/2.579, allocations: 21 kB / 1.03 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02912/2.608, allocations: 15.15 MB / 1.045 GB, free: 7.848 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/2.608, allocations: 7.188 kB / 1.045 GB, free: 7.848 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002853/2.611, allocations: 0.7235 MB / 1.046 GB, free: 7.824 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/2.613, allocations: 0.6799 MB / 1.047 GB, free: 7.672 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003729/2.613, allocations: 24.25 kB / 1.047 GB, free: 7.668 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007214/2.621, allocations: 5.956 MB / 1.052 GB, free: 4.301 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/2.621, allocations: 7.062 kB / 1.052 GB, free: 4.301 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01707/2.638, allocations: 10.11 MB / 1.062 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003293/2.641, allocations: 0.8956 MB / 1.063 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007181/2.642, allocations: 8 kB / 1.063 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/2.644, allocations: 169.5 kB / 1.063 GB, free: 14.99 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005343/2.645, allocations: 265.1 kB / 1.064 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002425/2.645, allocations: 107.7 kB / 1.064 GB, free: 14.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003806/2.649, allocations: 2.057 MB / 1.066 GB, free: 12.94 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.9e-07/2.649, allocations: 1.969 kB / 1.066 GB, free: 12.94 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008277/2.657, allocations: 1.402 MB / 1.067 GB, free: 11.55 MB / 490.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001378/2.658, allocations: 0.5329 MB / 1.068 GB, free: 11.16 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01156/2.67, allocations: 6.377 MB / 1.074 GB, free: 5.582 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/2.67, allocations: 4 kB / 1.074 GB, free: 5.578 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004796/2.675, allocations: 2.876 MB / 1.077 GB, free: 2.969 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004437/2.679, allocations: 0.7222 MB / 1.077 GB, free: 2.422 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03168/2.711, allocations: 13.7 MB / 1.091 GB, free: 6.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008174/2.719, allocations: 6.125 MB / 1.097 GB, free: 1.824 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006003/2.725, allocations: 1.862 MB / 1.098 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/2.726, allocations: 335.9 kB / 1.099 GB, free: 312 kB / 0.4948 GB Notification: Performance of SimCode: time 9.92e-07/2.726, allocations: 0 / 1.099 GB, free: 312 kB / 0.4948 GB Notification: Performance of Templates: time 0.4604/3.187, allocations: 56.29 MB / 1.154 GB, free: 84.06 MB / 0.4948 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","../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