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.0009804/0.0009806, allocations: 172.8 kB / 14.1 MB, free: 1.223 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.319/1.319, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007931/0.0007932, allocations: 82.7 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.094e-05/2.097e-05, allocations: 3.984 kB / 322.5 MB, free: 17.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.0839, allocations: 47.57 MB / 370 MB, free: 1.68 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.4438, allocations: 163.1 MB / 0.5207 GB, free: 11.31 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.4441, allocations: 102.6 kB / 0.5208 GB, free: 11.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.348/1.793, allocations: 395.7 MB / 0.9072 GB, free: 24.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.793, allocations: 0 / 0.9072 GB, free: 24.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007001/1.793, allocations: 304.9 kB / 0.9075 GB, free: 24.45 MB / 426.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.03765/1.831, allocations: 11.33 MB / 0.9186 GB, free: 20.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/1.831, allocations: 6.406 kB / 0.9186 GB, free: 20.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0344/1.866, allocations: 6.416 MB / 0.9248 GB, free: 20.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02419/1.89, allocations: 9.673 MB / 0.9343 GB, free: 18.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001168/1.891, allocations: 0.9434 MB / 0.9352 GB, free: 18.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005322/1.896, allocations: 1.242 MB / 0.9364 GB, free: 18.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04926/1.946, allocations: 20.67 MB / 0.9566 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007244/1.946, allocations: 21.59 kB / 0.9566 GB, free: 12.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004963/1.951, allocations: 0.5229 MB / 0.9571 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008494/1.952, allocations: 0.8633 MB / 0.958 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0493/2.002, allocations: 19.61 MB / 0.9771 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4036/2.405, allocations: 65.88 MB / 1.041 GB, free: 29.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03849/2.444, allocations: 46.05 MB / 1.086 GB, free: 25.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01177/2.456, allocations: 7.794 MB / 1.094 GB, free: 25.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04194/2.497, allocations: 23.82 MB / 1.117 GB, free: 24.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.552e-05/2.498, allocations: 103.3 kB / 1.117 GB, free: 24.51 MB / 490.7 MB Notification: Performance of pre-optimization done (n=772): time 8.987e-06/2.498, allocations: 0 / 1.117 GB, free: 24.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=814): time 0.04336/2.541, allocations: 26.98 MB / 1.144 GB, free: 14.27 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/2.541, allocations: 119.6 kB / 1.144 GB, free: 14.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00546/2.547, allocations: 3.778 MB / 1.148 GB, free: 12.75 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001266/2.548, allocations: 138.9 kB / 1.148 GB, free: 12.63 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002238/2.55, allocations: 5.085 MB / 1.153 GB, free: 8.812 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002741/2.553, allocations: 2.708 MB / 1.155 GB, free: 6.715 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005646/2.553, allocations: 166.1 kB / 1.155 GB, free: 6.586 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005526/2.554, allocations: 0.6686 MB / 1.156 GB, free: 6.121 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006653/2.561, allocations: 5.083 MB / 1.161 GB, free: 4.027 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/2.571, allocations: 7.551 MB / 1.168 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009821/2.581, allocations: 6.449 MB / 1.175 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.781e-05/2.581, allocations: 23.53 kB / 1.175 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1169) (initialization): time 0.02607/2.607, allocations: 15.7 MB / 1.19 GB, free: 3.555 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.889e-05/2.607, allocations: 40 kB / 1.19 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/2.607, allocations: 76 kB / 1.19 GB, free: 3.441 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007789/2.615, allocations: 4.114 MB / 1.194 GB, free: 28 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01531/2.63, allocations: 2.281 MB / 1.196 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2789/2.909, allocations: 12.19 MB / 1.208 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007146/2.916, allocations: 454.5 kB / 1.209 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001969/2.918, allocations: 399.5 kB / 1.209 GB, free: 92.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (871): * Single equations (assignments): 815 * 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.001813/2.92, allocations: 0.5889 MB / 1.21 GB, free: 92.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001716/2.922, allocations: 0.6055 MB / 1.21 GB, free: 92.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02659/2.948, allocations: 14.43 MB / 1.224 GB, free: 91.92 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002086/2.949, allocations: 195.1 kB / 1.225 GB, free: 91.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/2.949, allocations: 8.516 kB / 1.225 GB, free: 91.92 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001175/2.949, allocations: 33.75 kB / 1.225 GB, free: 91.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04652/2.995, allocations: 28.92 MB / 1.253 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.212e-05/2.995, allocations: 4.906 kB / 1.253 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005126/3.001, allocations: 1.058 MB / 1.254 GB, free: 89.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00734/3.008, allocations: 3.978 MB / 1.258 GB, free: 88.51 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001565/3.01, allocations: 177 kB / 1.258 GB, free: 88.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01046/3.02, allocations: 12.01 MB / 1.27 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/3.02, allocations: 7.656 kB / 1.27 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03199/3.052, allocations: 21.86 MB / 1.291 GB, free: 70.76 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005897/3.058, allocations: 1.774 MB / 1.293 GB, free: 69.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002873/3.061, allocations: 122.1 kB / 1.293 GB, free: 69.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005159/3.066, allocations: 333.9 kB / 1.293 GB, free: 69.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/3.068, allocations: 0.5782 MB / 1.294 GB, free: 69.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001272/3.069, allocations: 224.8 kB / 1.294 GB, free: 69.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005687/3.075, allocations: 2.808 MB / 1.297 GB, free: 68.33 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.2e-07/3.075, allocations: 4.703 kB / 1.297 GB, free: 68.33 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01019/3.085, allocations: 2.215 MB / 1.299 GB, free: 68.09 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (552): * Single equations (assignments): 496 * 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.0022/3.087, allocations: 0.79 MB / 1.3 GB, free: 67.86 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02081/3.108, allocations: 13.02 MB / 1.312 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/3.108, allocations: 2.875 kB / 1.312 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01243/3.121, allocations: 6.725 MB / 1.319 GB, free: 55.17 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008248/3.129, allocations: 1.273 MB / 1.32 GB, free: 54.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04585/3.175, allocations: 22.23 MB / 1.342 GB, free: 34.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01109/3.186, allocations: 8.078 MB / 1.35 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00693/3.193, allocations: 1.998 MB / 1.352 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/3.195, allocations: 458.3 kB / 1.352 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of SimCode: time 3.556e-06/3.195, allocations: 0 / 1.352 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of Templates: time 0.4481/3.643, allocations: 127.1 MB / 1.476 GB, free: 67.95 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