Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008798/0.0008798, allocations: 171 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008164/0.0008163, allocations: 105.4 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003146, allocations: 15.94 kB / 352.4 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.205, allocations: 50.4 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2944/0.4994, allocations: 117 MB / 0.5076 GB, free: 101 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.4998, allocations: 101.8 kB / 0.5077 GB, free: 101 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1605/0.6603, allocations: 75.18 MB / 0.5811 GB, free: 33.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6603, allocations: 0 / 0.5811 GB, free: 33.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003196/0.6606, allocations: 87.88 kB / 0.5812 GB, free: 33.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009512/0.6702, allocations: 3.466 MB / 0.5846 GB, free: 29.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.6702, allocations: 15.97 kB / 0.5846 GB, free: 29.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002968/0.6732, allocations: 0.5861 MB / 0.5852 GB, free: 29.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005762/0.679, allocations: 2.533 MB / 0.5876 GB, free: 26.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001953/0.6792, allocations: 238.7 kB / 0.5879 GB, free: 26.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009047/0.6801, allocations: 312.3 kB / 0.5882 GB, free: 25.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006233/0.6863, allocations: 3.999 MB / 0.5921 GB, free: 21.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.6e-05/0.6864, allocations: 11.84 kB / 0.5921 GB, free: 21.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/0.6867, allocations: 140 kB / 0.5922 GB, free: 21.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.6868, allocations: 142.2 kB / 0.5923 GB, free: 21.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004585/0.6914, allocations: 3.167 MB / 0.5954 GB, free: 18.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01541/0.7068, allocations: 13.45 MB / 0.6086 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003013/0.7099, allocations: 3.976 MB / 0.6124 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/0.7115, allocations: 1.015 MB / 0.6134 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004231/0.7157, allocations: 2.684 MB / 0.6161 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.7157, allocations: 47.55 kB / 0.6161 GB, free: 12.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=108): time 2.615e-06/0.7158, allocations: 0 / 0.6161 GB, free: 12.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=142): time 0.01249/0.7283, allocations: 6.392 MB / 0.6223 GB, free: 5.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.7283, allocations: 72.66 kB / 0.6224 GB, free: 5.508 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.7309, allocations: 1.874 MB / 0.6242 GB, free: 3.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.035e-05/0.731, allocations: 53.7 kB / 0.6243 GB, free: 3.531 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009089/0.7319, allocations: 1.509 MB / 0.6258 GB, free: 2.004 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003383/0.7323, allocations: 496.8 kB / 0.6262 GB, free: 1.512 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.517e-05/0.7324, allocations: 36 kB / 0.6263 GB, free: 1.477 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.7325, allocations: 377.9 kB / 0.6266 GB, free: 1.102 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.7336, allocations: 0.7613 MB / 0.6274 GB, free: 348 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.7351, allocations: 1.362 MB / 0.6287 GB, free: 14.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.7378, allocations: 2.287 MB / 0.6309 GB, free: 12.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.7378, allocations: 8 kB / 0.631 GB, free: 12.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003835/0.7417, allocations: 2.454 MB / 0.6334 GB, free: 9.684 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.7417, allocations: 18.75 kB / 0.6334 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/0.7417, allocations: 24.06 kB / 0.6334 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003426/0.7421, allocations: 118.5 kB / 0.6335 GB, free: 9.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.7438, allocations: 479.2 kB / 0.634 GB, free: 9.051 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009531/0.7447, allocations: 1.311 MB / 0.6352 GB, free: 7.605 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.7463, allocations: 124 kB / 0.6354 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.7465, allocations: 76 kB / 0.6354 GB, free: 7.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (230): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001785/0.7483, allocations: 0.9812 MB / 0.6364 GB, free: 6.418 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.7486, allocations: 205.4 kB / 0.6366 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/0.7517, allocations: 1.962 MB / 0.6385 GB, free: 4.234 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.7517, allocations: 16 kB / 0.6385 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.7517, allocations: 0 / 0.6385 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.7518, allocations: 7.969 kB / 0.6385 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007374/0.7591, allocations: 5.008 MB / 0.6434 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.7592, allocations: 0 / 0.6434 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.7605, allocations: 307.6 kB / 0.6437 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002911/0.7608, allocations: 98.77 kB / 0.6438 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.82e-05/0.7609, allocations: 31.94 kB / 0.6438 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009481/0.7618, allocations: 1.28 MB / 0.6451 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.7619, allocations: 7.938 kB / 0.6451 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004753/0.7666, allocations: 3.08 MB / 0.6481 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.7677, allocations: 466.4 kB / 0.6485 GB, free: 9.633 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/0.7679, allocations: 28 kB / 0.6486 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009407/0.7688, allocations: 79.91 kB / 0.6486 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.769, allocations: 101 kB / 0.6487 GB, free: 9.426 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.7691, allocations: 40.05 kB / 0.6488 GB, free: 9.387 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001986/0.7711, allocations: 1.27 MB / 0.65 GB, free: 8.094 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7711, allocations: 0 / 0.65 GB, free: 8.094 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001859/0.773, allocations: 0.582 MB / 0.6506 GB, free: 7.512 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006472/0.7736, allocations: 459.4 kB / 0.651 GB, free: 7.059 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.7768, allocations: 2.208 MB / 0.6532 GB, free: 4.797 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7768, allocations: 0 / 0.6532 GB, free: 4.797 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.7783, allocations: 1.178 MB / 0.6543 GB, free: 3.566 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/0.7808, allocations: 0.4913 MB / 0.6548 GB, free: 3.082 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2005/0.9813, allocations: 6.718 MB / 0.6614 GB, free: 85.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.983, allocations: 2.272 MB / 0.6636 GB, free: 84.44 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00179/0.9848, allocations: 0.5151 MB / 0.6641 GB, free: 84.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003954/0.9852, allocations: 154.4 kB / 0.6642 GB, free: 84.41 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/0.9852, allocations: 0 / 0.6642 GB, free: 84.41 MB / 426.7 MB Notification: Performance of Templates: time 0.04412/1.029, allocations: 28.3 MB / 0.6919 GB, free: 83.24 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches