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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 180.7 kB / 17.02 MB, free: 5.125 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.274/1.274, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008391/0.0008391, allocations: 100.6 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002277, allocations: 4 kB / 328.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1873, allocations: 47.57 MB / 375.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.304/0.4914, allocations: 163.2 MB / 0.5264 GB, free: 93.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.4916, allocations: 106.9 kB / 0.5265 GB, free: 93.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.079/1.57, allocations: 396 MB / 0.9132 GB, free: 35.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.372e-06/1.57, allocations: 0 / 0.9132 GB, free: 35.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009361/1.571, allocations: 294.8 kB / 0.9135 GB, free: 35.93 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.03721/1.608, allocations: 12.01 MB / 0.9253 GB, free: 31.85 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/1.609, allocations: 7.062 kB / 0.9253 GB, free: 31.85 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0349/1.643, allocations: 6.455 MB / 0.9316 GB, free: 30.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02576/1.669, allocations: 9.713 MB / 0.9411 GB, free: 24.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001081/1.67, allocations: 0.949 MB / 0.942 GB, free: 23.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004809/1.675, allocations: 1.232 MB / 0.9432 GB, free: 22.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05443/1.73, allocations: 20.91 MB / 0.9636 GB, free: 3.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006936/1.73, allocations: 23.8 kB / 0.9636 GB, free: 3.156 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004842/1.735, allocations: 0.5345 MB / 0.9641 GB, free: 2.637 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0012/1.736, allocations: 0.8539 MB / 0.965 GB, free: 1.781 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2841/2.021, allocations: 18.95 MB / 0.9835 GB, free: 49.58 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1111/2.132, allocations: 65.87 MB / 1.048 GB, free: 37.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0315/2.163, allocations: 46.18 MB / 1.093 GB, free: 13.12 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05041/2.214, allocations: 23.96 MB / 1.116 GB, free: 1.598 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.296e-05/2.214, allocations: 104.8 kB / 1.116 GB, free: 1.508 MB / 474.7 MB Notification: Performance of pre-optimization done (n=783): time 1.179e-05/2.214, allocations: 0 / 1.116 GB, free: 1.508 MB / 474.7 MB Notification: Performance of matching and sorting (n=825): time 0.1124/2.326, allocations: 46.66 MB / 1.162 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/2.326, allocations: 124.9 kB / 1.162 GB, free: 9.191 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0092/2.336, allocations: 3.814 MB / 1.166 GB, free: 5.961 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001557/2.337, allocations: 137.7 kB / 1.166 GB, free: 5.82 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003688/2.341, allocations: 5.074 MB / 1.171 GB, free: 1.328 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.2625/2.603, allocations: 2.734 MB / 1.174 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008152/2.604, allocations: 172.3 kB / 1.174 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006473/2.605, allocations: 0.6695 MB / 1.174 GB, free: 99.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006989/2.612, allocations: 5.191 MB / 1.179 GB, free: 99.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008617/2.621, allocations: 7.644 MB / 1.187 GB, free: 97.17 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009854/2.63, allocations: 6.533 MB / 1.193 GB, free: 97.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.752e-05/2.631, allocations: 19.69 kB / 1.193 GB, free: 97.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03/2.661, allocations: 15.92 MB / 1.209 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001568/2.661, allocations: 38.44 kB / 1.209 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/2.661, allocations: 78.34 kB / 1.209 GB, free: 96.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00751/2.669, allocations: 4.136 MB / 1.213 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007103/2.676, allocations: 1.683 MB / 1.215 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/2.688, allocations: 12.21 MB / 1.227 GB, free: 92.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006959/2.695, allocations: 458.1 kB / 1.227 GB, free: 92.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002008/2.697, allocations: 400.8 kB / 1.227 GB, free: 92.06 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (878): * Single equations (assignments): 822 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01069/2.708, allocations: 4.452 MB / 1.232 GB, free: 91.95 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002336/2.71, allocations: 0.6137 MB / 1.232 GB, free: 91.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02924/2.739, allocations: 14.6 MB / 1.247 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002143/2.74, allocations: 196 kB / 1.247 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.471e-05/2.74, allocations: 0 / 1.247 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001289/2.74, allocations: 41.03 kB / 1.247 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05836/2.798, allocations: 29.33 MB / 1.275 GB, free: 74.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.876e-05/2.798, allocations: 3.969 kB / 1.276 GB, free: 74.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005386/2.804, allocations: 1.082 MB / 1.277 GB, free: 74.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007333/2.811, allocations: 4.008 MB / 1.28 GB, free: 72.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001468/2.812, allocations: 181 kB / 1.281 GB, free: 72.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/2.823, allocations: 12.07 MB / 1.292 GB, free: 61.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/2.824, allocations: 5.781 kB / 1.292 GB, free: 61.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03964/2.863, allocations: 22.18 MB / 1.314 GB, free: 41.59 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006757/2.87, allocations: 1.79 MB / 1.316 GB, free: 39.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003272/2.873, allocations: 124 kB / 1.316 GB, free: 39.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005928/2.879, allocations: 334.9 kB / 1.316 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002377/2.882, allocations: 0.5856 MB / 1.317 GB, free: 39.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001674/2.883, allocations: 218.7 kB / 1.317 GB, free: 39.05 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006431/2.89, allocations: 2.858 MB / 1.32 GB, free: 36.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.71e-07/2.89, allocations: 0 / 1.32 GB, free: 36.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01225/2.902, allocations: 2.218 MB / 1.322 GB, free: 34.47 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (563): * Single equations (assignments): 507 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002636/2.905, allocations: 0.687 MB / 1.323 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02457/2.929, allocations: 13.26 MB / 1.336 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/2.929, allocations: 0 / 1.336 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01398/2.943, allocations: 6.858 MB / 1.342 GB, free: 16.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007932/2.951, allocations: 1.268 MB / 1.344 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3089/3.26, allocations: 31.86 MB / 1.375 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007882/3.268, allocations: 8.085 MB / 1.383 GB, free: 82.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007217/3.275, allocations: 2.005 MB / 1.385 GB, free: 81.99 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/3.277, allocations: 457.9 kB / 1.385 GB, free: 81.99 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/3.277, allocations: 0 / 1.385 GB, free: 81.99 MB / 0.4948 GB Notification: Performance of Templates: time 0.2594/3.536, allocations: 133.5 MB / 1.515 GB, free: 14.91 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches