Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 181.8 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 221.4 MB / 230 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 98.14 kB / 280.8 MB, free: 15.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.495e-05, allocations: 4 kB / 336.5 MB, free: 7.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2182, allocations: 50.39 MB / 386.9 MB, free: 36.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.288/0.5063, allocations: 119.6 MB / 0.4947 GB, free: 103.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.5067, allocations: 96.91 kB / 0.4948 GB, free: 103.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3402/0.8469, allocations: 158.8 MB / 0.6499 GB, free: 1.508 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002672/0.8472, allocations: 99.88 kB / 0.65 GB, free: 1.41 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.1366/0.9838, allocations: 3.945 MB / 0.6539 GB, free: 92.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.9839, allocations: 9.5 kB / 0.6539 GB, free: 92.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005297/0.9892, allocations: 0.94 MB / 0.6548 GB, free: 92.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008097/0.9973, allocations: 3.825 MB / 0.6585 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.9975, allocations: 133.6 kB / 0.6587 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006084/0.9981, allocations: 242.2 kB / 0.6589 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006812/1.005, allocations: 3.848 MB / 0.6626 GB, free: 92.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007396/1.012, allocations: 4.478 MB / 0.667 GB, free: 91.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-05/1.012, allocations: 7.344 kB / 0.667 GB, free: 91.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003229/1.013, allocations: 3.531 kB / 0.667 GB, free: 91.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/1.013, allocations: 174.9 kB / 0.6672 GB, free: 91.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02131/1.034, allocations: 16.28 MB / 0.6831 GB, free: 88.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/1.036, allocations: 1.289 MB / 0.6844 GB, free: 88.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00201/1.038, allocations: 1.679 MB / 0.686 GB, free: 88.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006997/1.045, allocations: 5.195 MB / 0.6911 GB, free: 86.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/1.045, allocations: 50.31 kB / 0.6911 GB, free: 86.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 3.467e-06/1.045, allocations: 6.188 kB / 0.6911 GB, free: 86.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.008374/1.053, allocations: 5.223 MB / 0.6962 GB, free: 85.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.701e-05/1.053, allocations: 75.97 kB / 0.6963 GB, free: 85.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002281/1.056, allocations: 1.664 MB / 0.6979 GB, free: 85.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001753/1.056, allocations: 28.8 kB / 0.6979 GB, free: 85.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005283/1.056, allocations: 1.481 MB / 0.6994 GB, free: 84.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003919/1.057, allocations: 0.6314 MB / 0.7 GB, free: 83.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/1.057, allocations: 0 / 0.7 GB, free: 83.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/1.057, allocations: 400.5 kB / 0.7004 GB, free: 83.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/1.058, allocations: 0.8927 MB / 0.7013 GB, free: 83.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/1.059, allocations: 1.58 MB / 0.7028 GB, free: 82.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001827/1.061, allocations: 1.232 MB / 0.704 GB, free: 82.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/1.061, allocations: 7.219 kB / 0.704 GB, free: 82.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.004321/1.066, allocations: 2.893 MB / 0.7068 GB, free: 82.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.066, allocations: 3.938 kB / 0.7068 GB, free: 82.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.608e-05/1.066, allocations: 22.94 kB / 0.7069 GB, free: 82.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/1.066, allocations: 130 kB / 0.707 GB, free: 82.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/1.068, allocations: 0.5949 MB / 0.7076 GB, free: 82.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/1.069, allocations: 1.735 MB / 0.7093 GB, free: 81.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/1.071, allocations: 73.86 kB / 0.7093 GB, free: 81.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/1.071, allocations: 101.9 kB / 0.7094 GB, free: 81.17 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (299): * Single equations (assignments): 297 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003098/1.072, allocations: 175.4 kB / 0.7096 GB, free: 81.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/1.072, allocations: 237.2 kB / 0.7098 GB, free: 80.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004207/1.076, allocations: 2.657 MB / 0.7124 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/1.076, allocations: 19.09 kB / 0.7124 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/1.076, allocations: 3.75 kB / 0.7124 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/1.076, allocations: 14.8 kB / 0.7125 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008645/1.085, allocations: 5.918 MB / 0.7182 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/1.085, allocations: 3.938 kB / 0.7182 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/1.087, allocations: 354 kB / 0.7186 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007931/1.087, allocations: 317.6 kB / 0.7189 GB, free: 79.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/1.088, allocations: 18.12 kB / 0.7189 GB, free: 79.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004698/1.092, allocations: 5.999 MB / 0.7248 GB, free: 75.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/1.092, allocations: 3.938 kB / 0.7248 GB, free: 75.11 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005248/1.098, allocations: 4.063 MB / 0.7287 GB, free: 73.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/1.099, allocations: 0.5031 MB / 0.7292 GB, free: 72.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003572/1.099, allocations: 16.14 kB / 0.7292 GB, free: 72.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/1.1, allocations: 68.58 kB / 0.7293 GB, free: 72.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002433/1.1, allocations: 111 kB / 0.7294 GB, free: 72.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/1.101, allocations: 52.84 kB / 0.7295 GB, free: 72.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001848/1.102, allocations: 1.234 MB / 0.7307 GB, free: 72.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002453/1.105, allocations: 0.6356 MB / 0.7313 GB, free: 72.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006571/1.106, allocations: 403.4 kB / 0.7317 GB, free: 72.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003524/1.109, allocations: 2.416 MB / 0.734 GB, free: 71.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.109, allocations: 1.031 kB / 0.734 GB, free: 71.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/1.111, allocations: 1.466 MB / 0.7355 GB, free: 70.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/1.113, allocations: 409.2 kB / 0.7358 GB, free: 70.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/1.124, allocations: 5.706 MB / 0.7414 GB, free: 68.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002649/1.127, allocations: 2.921 MB / 0.7443 GB, free: 67.09 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/1.127, allocations: 0 / 0.7443 GB, free: 67.09 MB / 426.7 MB Notification: Performance of Templates: time 0.05186/1.179, allocations: 31.35 MB / 0.7749 GB, free: 56.94 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches