Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.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.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|loadInductor.inductor.2..i|loadInductor.inductor.3..i|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|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|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|loadInductor.inductor.2..i|loadInductor.inductor.3..i|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|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|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump") [: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 3.2.3+maint.om/package.mo): time 0.002318/0.002318, allocations: 169.3 kB / 8.148 MB, free: 2.145 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.699/1.699, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001273/0.001273, allocations: 88.36 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.242e-05/1.256e-05, allocations: 4 kB / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2676, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.4667, allocations: 120.4 MB / 482.3 MB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003501/0.4671, allocations: 80.45 kB / 482.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.7357/1.203, allocations: 100.8 MB / 0.5695 GB, free: 72.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006212/1.203, allocations: 111.9 kB / 0.5696 GB, free: 72.11 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.02491/1.228, allocations: 4.207 MB / 0.5737 GB, free: 67.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.228, allocations: 8.031 kB / 0.5737 GB, free: 67.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008846/1.237, allocations: 0.974 MB / 0.5747 GB, free: 66.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/1.254, allocations: 3.959 MB / 0.5786 GB, free: 62.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000461/1.254, allocations: 346.5 kB / 0.5789 GB, free: 62.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001708/1.256, allocations: 247.9 kB / 0.5791 GB, free: 62.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01462/1.271, allocations: 4.004 MB / 0.583 GB, free: 58.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/1.289, allocations: 4.661 MB / 0.5876 GB, free: 53.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001992/1.289, allocations: 15.89 kB / 0.5876 GB, free: 53.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001234/1.29, allocations: 7.984 kB / 0.5876 GB, free: 53.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/1.29, allocations: 172.2 kB / 0.5878 GB, free: 53.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04897/1.339, allocations: 17.29 MB / 0.6047 GB, free: 35.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003921/1.343, allocations: 1.546 MB / 0.6062 GB, free: 34.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004943/1.348, allocations: 1.87 MB / 0.608 GB, free: 32.17 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01677/1.365, allocations: 5.734 MB / 0.6136 GB, free: 26.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002982/1.368, allocations: 1.347 MB / 0.6149 GB, free: 24.94 MB / 394.7 MB Notification: Performance of pre-optimization done (n=214): time 6.752e-06/1.368, allocations: 0 / 0.6149 GB, free: 24.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=247): time 0.02803/1.396, allocations: 7.538 MB / 0.6223 GB, free: 17.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/1.397, allocations: 346.4 kB / 0.6226 GB, free: 16.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004443/1.401, allocations: 1.829 MB / 0.6244 GB, free: 15.11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005641/1.402, allocations: 33.7 kB / 0.6244 GB, free: 15.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/1.403, allocations: 1.41 MB / 0.6258 GB, free: 13.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/1.404, allocations: 0.7929 MB / 0.6266 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002455/1.404, allocations: 0 / 0.6266 GB, free: 12.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002496/1.405, allocations: 424.7 kB / 0.627 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003012/1.408, allocations: 1.173 MB / 0.6281 GB, free: 11.24 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003768/1.411, allocations: 1.945 MB / 0.63 GB, free: 8.984 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004335/1.416, allocations: 1.528 MB / 0.6315 GB, free: 7.438 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.83e-05/1.416, allocations: 4 kB / 0.6315 GB, free: 7.434 MB / 394.7 MB Notification: Performance of matching and sorting (n=362) (initialization): time 0.01155/1.427, allocations: 3.927 MB / 0.6353 GB, free: 3.434 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002833/1.43, allocations: 7.841 MB / 0.643 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.111e-05/1.43, allocations: 20 kB / 0.643 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004562/1.435, allocations: 1.018 MB / 0.644 GB, free: 9.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004719/1.44, allocations: 0.5265 MB / 0.6445 GB, free: 9.383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2079/1.648, allocations: 13.23 MB / 0.6575 GB, free: 115.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003325/1.651, allocations: 112 kB / 0.6576 GB, free: 115.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005057/1.652, allocations: 116.2 kB / 0.6577 GB, free: 115.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/1.652, allocations: 6.031 kB / 0.6577 GB, free: 115.4 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01195/1.664, allocations: 3.785 MB / 0.6614 GB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/1.664, allocations: 25.19 kB / 0.6614 GB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004067/1.668, allocations: 1.014 MB / 0.6624 GB, free: 115.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004563/1.673, allocations: 0.5283 MB / 0.6629 GB, free: 115.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02168/1.694, allocations: 13.24 MB / 0.6758 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/1.698, allocations: 103.5 kB / 0.6759 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004926/1.698, allocations: 119.7 kB / 0.676 GB, free: 107.8 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (303): * Single equations (assignments): 296 * 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: 6 * 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: 3 {(2,100.0%) 23,(6,58.3%) 18,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009863/1.699, allocations: 123.5 kB / 0.6762 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.7, allocations: 276 kB / 0.6764 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/1.713, allocations: 3.539 MB / 0.6799 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.334e-05/1.713, allocations: 25.97 kB / 0.6799 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/1.713, allocations: 2.281 kB / 0.6799 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-05/1.713, allocations: 11.39 kB / 0.6799 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/1.736, allocations: 7.29 MB / 0.687 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.991e-05/1.736, allocations: 0 / 0.687 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003497/1.74, allocations: 348.5 kB / 0.6874 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00494/1.745, allocations: 1.056 MB / 0.6884 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000594/1.745, allocations: 31.08 kB / 0.6884 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02224/1.768, allocations: 10.94 MB / 0.6991 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.437e-06/1.768, allocations: 2.969 kB / 0.6991 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01614/1.784, allocations: 5.238 MB / 0.7042 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002926/1.787, allocations: 0.621 MB / 0.7048 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/1.788, allocations: 31.67 kB / 0.7049 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004003/1.792, allocations: 95.91 kB / 0.705 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009397/1.793, allocations: 159.4 kB / 0.7051 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000264/1.793, allocations: 70.59 kB / 0.7052 GB, free: 101.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00422/1.798, allocations: 1.361 MB / 0.7065 GB, free: 100.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01018/1.808, allocations: 1.328 MB / 0.7078 GB, free: 100.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 56,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001323/1.809, allocations: 413.9 kB / 0.7082 GB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01981/1.829, allocations: 6.486 MB / 0.7145 GB, free: 97.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/1.829, allocations: 1.25 kB / 0.7145 GB, free: 97.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007346/1.837, allocations: 2.059 MB / 0.7165 GB, free: 96.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005472/1.842, allocations: 458.3 kB / 0.717 GB, free: 96.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02955/1.872, allocations: 6.588 MB / 0.7234 GB, free: 93.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007397/1.879, allocations: 3.078 MB / 0.7264 GB, free: 92.56 MB / 410.7 MB Notification: Performance of SimCode: time 2.154e-06/1.879, allocations: 0 / 0.7264 GB, free: 92.56 MB / 410.7 MB Notification: Performance of Templates: time 0.4229/2.302, allocations: 158 MB / 0.8807 GB, free: 107.2 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches