Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.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.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_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.001666/0.001666, allocations: 175.1 kB / 8.149 MB, free: 2.195 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.618/1.618, allocations: 205.2 MB / 213.8 MB, free: 13.88 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.001304/0.001303, allocations: 77.98 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.385e-05/1.396e-05, allocations: 4 kB / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2376, allocations: 47.56 MB / 361.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.3715, allocations: 84.72 MB / 446.6 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.3719, allocations: 93.98 kB / 446.7 MB, free: 1.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.05503/0.427, allocations: 12 MB / 458.7 MB, free: 5.234 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.525e-05/0.4271, allocations: 16 kB / 458.7 MB, free: 5.219 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.003135/0.4302, allocations: 1.007 MB / 459.7 MB, free: 4.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4303, allocations: 8.031 kB / 459.7 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003331/0.4306, allocations: 94.88 kB / 459.8 MB, free: 4.051 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.4321, allocations: 0.5278 MB / 460.3 MB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.632e-05/0.4321, allocations: 23.98 kB / 460.3 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.4323, allocations: 51.98 kB / 460.4 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00159/0.4339, allocations: 451.9 kB / 460.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.4357, allocations: 0.6055 MB / 461.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.42e-05/0.4358, allocations: 3.938 kB / 461.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.552e-05/0.4359, allocations: 0 / 461.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.4359, allocations: 19.91 kB / 461.5 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006721/0.4427, allocations: 2.494 MB / 464 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.444, allocations: 454.8 kB / 464.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.4447, allocations: 247.2 kB / 464.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.316e-05/0.4448, allocations: 12.48 kB / 464.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009516/0.4458, allocations: 342 kB / 465 MB, free: 14.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.196e-06/0.4458, allocations: 0 / 465 MB, free: 14.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001788/0.4476, allocations: 0.543 MB / 465.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.605e-05/0.4477, allocations: 119.5 kB / 465.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008019/0.4485, allocations: 385.9 kB / 466 MB, free: 13.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.937e-05/0.4487, allocations: 29.7 kB / 466.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.4489, allocations: 302.7 kB / 466.4 MB, free: 13.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.4492, allocations: 197.1 kB / 466.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.4493, allocations: 0 / 466.5 MB, free: 13.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4494, allocations: 338.8 kB / 466.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005849/0.45, allocations: 173.5 kB / 467.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007557/0.4508, allocations: 344.1 kB / 467.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006667/0.4515, allocations: 208.7 kB / 467.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.4515, allocations: 0 / 467.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001907/0.4534, allocations: 0.6053 MB / 468.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008017/0.4543, allocations: 1.83 MB / 470 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.4543, allocations: 8 kB / 470 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007812/0.4551, allocations: 144.7 kB / 470.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.4562, allocations: 123.8 kB / 470.3 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.4603, allocations: 2.031 MB / 472.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008706/0.4612, allocations: 71.72 kB / 472.4 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.551e-05/0.4613, allocations: 28 kB / 472.4 MB, free: 6.816 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.4613, allocations: 4.625 kB / 472.4 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001706/0.463, allocations: 0.5451 MB / 473 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.4631, allocations: 4 kB / 473 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006686/0.4638, allocations: 143.4 kB / 473.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009353/0.4647, allocations: 120.1 kB / 473.2 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003985/0.4687, allocations: 2.042 MB / 475.3 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/0.4696, allocations: 67.66 kB / 475.3 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.288e-05/0.4697, allocations: 28.69 kB / 475.4 MB, free: 3.754 MB / 362.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,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$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.0002937/0.47, allocations: 61.56 kB / 475.4 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.4702, allocations: 67.16 kB / 475.5 MB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.4721, allocations: 0.5734 MB / 476.1 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.4721, allocations: 4 kB / 476.1 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4721, allocations: 4 kB / 476.1 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.4722, allocations: 7.922 kB / 476.1 MB, free: 3.016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.4754, allocations: 1.301 MB / 477.4 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4755, allocations: 3.938 kB / 477.4 MB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009082/0.4764, allocations: 87.97 kB / 477.5 MB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000733/0.4772, allocations: 152.1 kB / 477.6 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.961e-05/0.4773, allocations: 7.984 kB / 477.6 MB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003989/0.4813, allocations: 2.042 MB / 479.7 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.4813, allocations: 4 kB / 479.7 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002741/0.4841, allocations: 0.9471 MB / 480.6 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005069/0.4846, allocations: 200.2 kB / 480.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.4848, allocations: 4 kB / 480.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00091/0.4857, allocations: 55.95 kB / 480.9 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.486, allocations: 56.75 kB / 480.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/0.4861, allocations: 23.98 kB / 481 MB, free: 13.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005589/0.4867, allocations: 287 kB / 481.2 MB, free: 13.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001521/0.4882, allocations: 306.9 kB / 481.5 MB, free: 13.37 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,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * 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.0003007/0.4885, allocations: 137.4 kB / 481.7 MB, free: 13.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003394/0.4919, allocations: 1.136 MB / 482.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.492, allocations: 5.062 kB / 482.8 MB, free: 12.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.4932, allocations: 419.8 kB / 483.2 MB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009621/0.4942, allocations: 86.23 kB / 483.3 MB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004345/0.4986, allocations: 0.9934 MB / 484.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/0.4998, allocations: 1.017 MB / 485.3 MB, free: 9.484 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.4999, allocations: 0 / 485.3 MB, free: 9.484 MB / 378.7 MB Notification: Performance of Templates: time 0.0264/0.5263, allocations: 11.66 MB / 497 MB, free: 13.84 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCAC/SinglePhaseTwoLevel/SinglePhaseTwoLevel_R/SinglePhaseTwoLevel_R.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches