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.001439/0.001439, allocations: 183 kB / 18.04 MB, free: 3.781 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.623/1.623, allocations: 205.4 MB / 224.2 MB, free: 9.023 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.0007513/0.0007513, allocations: 98.5 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002977/0.0002977, allocations: 11.98 kB / 329.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.1929, allocations: 47.57 MB / 377.1 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.299/0.4919, allocations: 163.9 MB / 0.5283 GB, free: 92.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.4922, allocations: 105.1 kB / 0.5284 GB, free: 92.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.074/1.566, allocations: 393.8 MB / 0.9129 GB, free: 35.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.566, allocations: 0 / 0.9129 GB, free: 35.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009866/1.567, allocations: 298.1 kB / 0.9132 GB, free: 35.92 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.03841/1.606, allocations: 11.88 MB / 0.9248 GB, free: 31.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/1.606, allocations: 11.38 kB / 0.9248 GB, free: 31.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0332/1.639, allocations: 6.447 MB / 0.9311 GB, free: 31.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02109/1.66, allocations: 9.082 MB / 0.94 GB, free: 25.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001013/1.661, allocations: 0.9522 MB / 0.9409 GB, free: 24.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005917/1.667, allocations: 1.236 MB / 0.9421 GB, free: 23.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.047/1.714, allocations: 21.01 MB / 0.9626 GB, free: 4.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004426/1.715, allocations: 23.81 kB / 0.9626 GB, free: 4.797 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003668/1.718, allocations: 0.5276 MB / 0.9632 GB, free: 4.285 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001012/1.719, allocations: 0.8573 MB / 0.964 GB, free: 3.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04158/1.761, allocations: 18.96 MB / 0.9825 GB, free: 468 kB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3385/2.1, allocations: 65.93 MB / 1.047 GB, free: 37.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03219/2.132, allocations: 46.17 MB / 1.092 GB, free: 13.09 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01189/2.144, allocations: 7.882 MB / 1.1 GB, free: 9.816 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07195/2.216, allocations: 23.93 MB / 1.123 GB, free: 14.81 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/2.216, allocations: 101.3 kB / 1.123 GB, free: 14.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=773): time 1.627e-05/2.216, allocations: 0 / 1.123 GB, free: 14.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=815): time 0.09986/2.316, allocations: 40.79 MB / 1.163 GB, free: 9.074 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.326e-05/2.316, allocations: 126.7 kB / 1.163 GB, free: 8.938 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006763/2.323, allocations: 4.325 MB / 1.167 GB, free: 5.309 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001217/2.324, allocations: 133.7 kB / 1.167 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003287/2.327, allocations: 5.083 MB / 1.172 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.2632/2.59, allocations: 2.707 MB / 1.175 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009082/2.591, allocations: 164.8 kB / 1.175 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006693/2.592, allocations: 0.6784 MB / 1.176 GB, free: 99.81 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007949/2.6, allocations: 5.158 MB / 1.181 GB, free: 99.79 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009018/2.609, allocations: 7.663 MB / 1.188 GB, free: 96.97 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01931/2.628, allocations: 13.72 MB / 1.202 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/2.629, allocations: 21.78 kB / 1.202 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1170) (initialization): time 0.02942/2.658, allocations: 15.87 MB / 1.217 GB, free: 93.63 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.889e-05/2.658, allocations: 40.66 kB / 1.217 GB, free: 93.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/2.658, allocations: 74.03 kB / 1.217 GB, free: 93.63 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006895/2.665, allocations: 4.13 MB / 1.221 GB, free: 93.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00673/2.672, allocations: 1.675 MB / 1.223 GB, free: 93.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/2.684, allocations: 12.23 MB / 1.235 GB, free: 88.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006676/2.691, allocations: 459.5 kB / 1.235 GB, free: 88.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/2.692, allocations: 402.6 kB / 1.236 GB, free: 88.79 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (872): * Single equations (assignments): 816 * 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.009981/2.702, allocations: 4.445 MB / 1.24 GB, free: 87.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001644/2.704, allocations: 0.6125 MB / 1.241 GB, free: 87.26 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02201/2.726, allocations: 14.49 MB / 1.255 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001652/2.726, allocations: 191.8 kB / 1.255 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/2.726, allocations: 3.844 kB / 1.255 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.229e-05/2.726, allocations: 38.88 kB / 1.255 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0467/2.773, allocations: 29.08 MB / 1.284 GB, free: 68.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.012e-05/2.773, allocations: 9.562 kB / 1.284 GB, free: 68.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004578/2.778, allocations: 1.056 MB / 1.285 GB, free: 68.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006699/2.784, allocations: 4.027 MB / 1.289 GB, free: 64.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00131/2.786, allocations: 172.4 kB / 1.289 GB, free: 64.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01027/2.796, allocations: 12.05 MB / 1.3 GB, free: 53.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/2.796, allocations: 7.438 kB / 1.3 GB, free: 53.46 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0307/2.827, allocations: 21.53 MB / 1.322 GB, free: 34.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004414/2.831, allocations: 1.784 MB / 1.323 GB, free: 32.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/2.832, allocations: 120 kB / 1.323 GB, free: 32.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003614/2.836, allocations: 339.3 kB / 1.324 GB, free: 32.33 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001203/2.837, allocations: 0.5716 MB / 1.324 GB, free: 31.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005374/2.838, allocations: 224.8 kB / 1.324 GB, free: 31.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004471/2.842, allocations: 2.852 MB / 1.327 GB, free: 29.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.51e-07/2.842, allocations: 0 / 1.327 GB, free: 29.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008367/2.851, allocations: 2.221 MB / 1.329 GB, free: 27.2 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 (553): * Single equations (assignments): 497 * 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.002/2.853, allocations: 0.6859 MB / 1.33 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02047/2.873, allocations: 13.17 MB / 1.343 GB, free: 15.28 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/2.873, allocations: 4.062 kB / 1.343 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2641/3.137, allocations: 6.831 MB / 1.35 GB, free: 93.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01121/3.149, allocations: 1.36 MB / 1.351 GB, free: 93.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04842/3.197, allocations: 30.05 MB / 1.38 GB, free: 82.98 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01347/3.211, allocations: 7.876 MB / 1.388 GB, free: 81.89 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0072/3.218, allocations: 2 MB / 1.39 GB, free: 81.68 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/3.219, allocations: 454.4 kB / 1.39 GB, free: 81.67 MB / 0.4948 GB Notification: Performance of SimCode: time 7.92e-07/3.219, allocations: 0 / 1.39 GB, free: 81.67 MB / 0.4948 GB Notification: Performance of Templates: time 0.1909/3.41, allocations: 134.1 MB / 1.521 GB, free: 10.16 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/jenkins1/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