Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") [: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 trunk/package.mo): time 0.001191/0.001191, allocations: 196.2 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008692/0.0008693, allocations: 91.81 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.486e-06, allocations: 4 kB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 51.48 MB / 394.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.4129, allocations: 87.75 MB / 482.4 MB, free: 5.426 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4132, allocations: 85.95 kB / 482.5 MB, free: 5.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03352/0.4467, allocations: 12.67 MB / 495.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.044e-05/0.4468, allocations: 23.98 kB / 495.2 MB, free: 10.95 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.001937/0.4488, allocations: 1.017 MB / 496.2 MB, free: 9.926 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4488, allocations: 8.031 kB / 496.2 MB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007071/0.4495, allocations: 166.7 kB / 496.4 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008318/0.4504, allocations: 0.5555 MB / 496.9 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.4504, allocations: 21.69 kB / 496.9 MB, free: 9.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.863e-05/0.4505, allocations: 47.91 kB / 497 MB, free: 9.184 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008982/0.4514, allocations: 457.1 kB / 497.4 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.4525, allocations: 0.6135 MB / 498 MB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.4525, allocations: 4 kB / 498 MB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.093e-05/0.4526, allocations: 7.984 kB / 498 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.4526, allocations: 16 kB / 498.1 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003829/0.4564, allocations: 2.524 MB / 0.4889 GB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00074/0.4572, allocations: 448 kB / 0.4893 GB, free: 6.082 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.4576, allocations: 248.5 kB / 0.4895 GB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.53e-05/0.4576, allocations: 12.48 kB / 0.4895 GB, free: 5.922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005471/0.4582, allocations: 350.4 kB / 0.4899 GB, free: 5.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.164e-06/0.4582, allocations: 0 / 0.4899 GB, free: 5.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.0009835/0.4592, allocations: 0.5427 MB / 0.4904 GB, free: 5.262 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.984e-05/0.4593, allocations: 114.5 kB / 0.4905 GB, free: 5.129 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004885/0.4598, allocations: 410.8 kB / 0.4909 GB, free: 4.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.4598, allocations: 29.02 kB / 0.4909 GB, free: 4.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.46, allocations: 271.9 kB / 0.4912 GB, free: 4.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.4602, allocations: 200.6 kB / 0.4914 GB, free: 4.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.4602, allocations: 0.5 kB / 0.4914 GB, free: 4.371 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4604, allocations: 370.3 kB / 0.4917 GB, free: 4.027 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.4608, allocations: 183.5 kB / 0.4919 GB, free: 3.926 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/0.4613, allocations: 348.5 kB / 0.4922 GB, free: 3.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.4616, allocations: 209 kB / 0.4924 GB, free: 3.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4616, allocations: 0 / 0.4924 GB, free: 3.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001109/0.4627, allocations: 0.6464 MB / 0.4931 GB, free: 2.992 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007628/0.4635, allocations: 1.822 MB / 0.4948 GB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4635, allocations: 7.984 kB / 0.4949 GB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005171/0.4641, allocations: 148.4 kB / 0.495 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005604/0.4646, allocations: 127.3 kB / 0.4951 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/0.4671, allocations: 2.049 MB / 0.4971 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006222/0.4678, allocations: 83.39 kB / 0.4972 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/0.4678, allocations: 30.69 kB / 0.4972 GB, free: 14.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.212e-06/0.4679, allocations: 7.938 kB / 0.4972 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009631/0.4688, allocations: 0.549 MB / 0.4978 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4688, allocations: 4.531 kB / 0.4978 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003971/0.4692, allocations: 148.3 kB / 0.4979 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.4697, allocations: 114.9 kB / 0.498 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.4721, allocations: 2.048 MB / 0.5 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/0.4726, allocations: 67.66 kB / 0.5001 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.4727, allocations: 26.38 kB / 0.5001 GB, free: 12.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002207/0.4729, allocations: 136.8 kB / 0.5002 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.4731, allocations: 63.25 kB / 0.5003 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.4741, allocations: 0.5875 MB / 0.5009 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.4742, allocations: 11.91 kB / 0.5009 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.4742, allocations: 0 / 0.5009 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.4742, allocations: 5.328 kB / 0.5009 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.4761, allocations: 1.328 MB / 0.5022 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4761, allocations: 0 / 0.5022 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.4766, allocations: 87.88 kB / 0.5023 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004043/0.477, allocations: 139.9 kB / 0.5024 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.409e-05/0.477, allocations: 4 kB / 0.5024 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/0.4793, allocations: 2.047 MB / 0.5044 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4793, allocations: 0 / 0.5044 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001376/0.4807, allocations: 0.951 MB / 0.5053 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.481, allocations: 204 kB / 0.5055 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.4811, allocations: 8 kB / 0.5055 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004608/0.4816, allocations: 47.95 kB / 0.5056 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4818, allocations: 56.56 kB / 0.5056 GB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.902e-05/0.4818, allocations: 33.33 kB / 0.5057 GB, free: 6.617 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003731/0.4822, allocations: 299 kB / 0.506 GB, free: 6.328 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009805/0.4832, allocations: 330.9 kB / 0.5063 GB, free: 6.004 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.000196/0.4834, allocations: 133.7 kB / 0.5064 GB, free: 5.863 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.4852, allocations: 1.164 MB / 0.5075 GB, free: 4.672 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4852, allocations: 0 / 0.5075 GB, free: 4.672 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006126/0.4859, allocations: 425.2 kB / 0.5079 GB, free: 4.246 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005031/0.4864, allocations: 91.17 kB / 0.508 GB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.4887, allocations: 0.9878 MB / 0.509 GB, free: 3.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007022/0.4894, allocations: 1.018 MB / 0.51 GB, free: 2.098 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4894, allocations: 0 / 0.51 GB, free: 2.098 MB / 378.7 MB Notification: Performance of Templates: time 0.02222/0.5116, allocations: 12.69 MB / 0.5224 GB, free: 5.617 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches