Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_RL") [: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.001073/0.001073, allocations: 199.2 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009802/0.0009802, allocations: 92.55 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.739e-06/4.779e-06, allocations: 0 / 343.2 MB, free: 8.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.09916, allocations: 51.48 MB / 394.6 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.306/0.4052, allocations: 88.07 MB / 482.7 MB, free: 5.332 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/0.4055, allocations: 86.27 kB / 482.8 MB, free: 5.285 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03338/0.4388, allocations: 13.01 MB / 495.8 MB, free: 10.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.004e-05/0.4389, allocations: 24 kB / 495.8 MB, free: 10.57 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001908/0.4409, allocations: 1.043 MB / 496.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.4409, allocations: 12.03 kB / 496.9 MB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006677/0.4416, allocations: 170.1 kB / 497 MB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008326/0.4424, allocations: 0.5416 MB / 497.6 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.4425, allocations: 31.56 kB / 497.6 MB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/0.4426, allocations: 47.98 kB / 497.7 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008349/0.4434, allocations: 467.3 kB / 498.1 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009828/0.4444, allocations: 0.632 MB / 498.8 MB, free: 8.031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.4444, allocations: 3.906 kB / 498.8 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/0.4445, allocations: 4 kB / 498.8 MB, free: 8.023 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.4445, allocations: 20 kB / 498.8 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003546/0.4481, allocations: 2.615 MB / 0.4896 GB, free: 5.871 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.4485, allocations: 259.5 kB / 0.4899 GB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003694/0.4489, allocations: 265.4 kB / 0.4901 GB, free: 5.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.199e-05/0.4489, allocations: 4.656 kB / 0.4901 GB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005256/0.4495, allocations: 355.5 kB / 0.4905 GB, free: 5.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.104e-06/0.4495, allocations: 0 / 0.4905 GB, free: 5.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.0009882/0.4505, allocations: 0.5455 MB / 0.491 GB, free: 4.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.4506, allocations: 126.9 kB / 0.4911 GB, free: 4.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.4511, allocations: 405.6 kB / 0.4915 GB, free: 4.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.859e-05/0.4512, allocations: 36.38 kB / 0.4916 GB, free: 4.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.4514, allocations: 266.6 kB / 0.4918 GB, free: 4.145 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.4516, allocations: 204.6 kB / 0.492 GB, free: 3.969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.4516, allocations: 0.5 kB / 0.492 GB, free: 3.969 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.4518, allocations: 378.9 kB / 0.4924 GB, free: 3.617 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003565/0.4521, allocations: 176.6 kB / 0.4925 GB, free: 3.523 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004636/0.4526, allocations: 365.6 kB / 0.4929 GB, free: 3.195 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000352/0.453, allocations: 207.9 kB / 0.4931 GB, free: 3.066 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.453, allocations: 4 kB / 0.4931 GB, free: 3.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001112/0.4541, allocations: 0.6544 MB / 0.4937 GB, free: 2.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008188/0.4549, allocations: 1.827 MB / 0.4955 GB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.455, allocations: 4 kB / 0.4955 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004856/0.4554, allocations: 145 kB / 0.4957 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.456, allocations: 131.4 kB / 0.4958 GB, free: 412 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.4586, allocations: 2.112 MB / 0.4978 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006851/0.4593, allocations: 71.66 kB / 0.4979 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.4594, allocations: 36.05 kB / 0.4979 GB, free: 14.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.156e-06/0.4594, allocations: 4 kB / 0.498 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009989/0.4604, allocations: 0.5554 MB / 0.4985 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.4604, allocations: 8 kB / 0.4985 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004038/0.4608, allocations: 137.1 kB / 0.4986 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.4613, allocations: 129.1 kB / 0.4988 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/0.4637, allocations: 2.119 MB / 0.5008 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005822/0.4643, allocations: 71.48 kB / 0.5009 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.4644, allocations: 32 kB / 0.5009 GB, free: 11.79 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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.000235/0.4646, allocations: 132.8 kB / 0.5011 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.4647, allocations: 75.27 kB / 0.5011 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.4659, allocations: 0.5816 MB / 0.5017 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4659, allocations: 8 kB / 0.5017 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.4659, allocations: 0 / 0.5017 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.4659, allocations: 3.984 kB / 0.5017 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.468, allocations: 1.328 MB / 0.503 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.468, allocations: 0 / 0.503 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005439/0.4685, allocations: 103.9 kB / 0.5031 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003826/0.4689, allocations: 134.2 kB / 0.5032 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.469, allocations: 11.98 kB / 0.5032 GB, free: 9.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00248/0.4715, allocations: 2.096 MB / 0.5053 GB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.4715, allocations: 4 kB / 0.5053 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001517/0.473, allocations: 0.951 MB / 0.5062 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.4734, allocations: 208 kB / 0.5064 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.4735, allocations: 8 kB / 0.5064 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004776/0.474, allocations: 51.95 kB / 0.5065 GB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.4741, allocations: 56.56 kB / 0.5065 GB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.4742, allocations: 20.11 kB / 0.5065 GB, free: 5.812 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003791/0.4746, allocations: 310.9 kB / 0.5068 GB, free: 5.512 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001222/0.4758, allocations: 335 kB / 0.5072 GB, free: 5.184 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002245/0.476, allocations: 151.7 kB / 0.5073 GB, free: 5.027 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.4781, allocations: 1.164 MB / 0.5084 GB, free: 3.844 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4781, allocations: 0 / 0.5084 GB, free: 3.844 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006309/0.4787, allocations: 425.2 kB / 0.5088 GB, free: 3.422 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.4793, allocations: 79.91 kB / 0.5089 GB, free: 3.352 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.4818, allocations: 1.044 MB / 0.5099 GB, free: 2.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007385/0.4825, allocations: 1.022 MB / 0.5109 GB, free: 1.219 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4825, allocations: 0 / 0.5109 GB, free: 1.219 MB / 378.7 MB Notification: Performance of Templates: time 0.02127/0.5038, allocations: 12.62 MB / 0.5233 GB, free: 4.805 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_RL/SinglePhaseTwoLevel_RL.csv","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches