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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001486/0.001486, allocations: 182.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.98/1.98, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001088/0.001087, allocations: 86.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.377e-05/3.381e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.09891, allocations: 47.57 MB / 369.1 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.531, allocations: 85.46 MB / 454.6 MB, free: 7.762 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.5314, allocations: 88.56 kB / 454.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05392/0.5853, allocations: 12.36 MB / 467 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5854, allocations: 4 kB / 467 MB, free: 13.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.492e-05/0.5854, allocations: 16 kB / 467 MB, free: 13.21 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.002795/0.5882, allocations: 0.9757 MB / 468 MB, free: 12.17 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.5883, allocations: 12.03 kB / 468 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/0.5886, allocations: 98.83 kB / 468.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.5898, allocations: 0.524 MB / 468.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.77e-05/0.5899, allocations: 54 kB / 468.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.59, allocations: 75.92 kB / 468.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/0.5919, allocations: 0.6953 MB / 469.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.5919, allocations: 3.938 kB / 469.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.592, allocations: 31.98 kB / 469.5 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.5921, allocations: 16 kB / 469.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.5936, allocations: 489.1 kB / 470 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006152/0.5997, allocations: 2.648 MB / 472.6 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.6013, allocations: 0.518 MB / 473.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007138/0.602, allocations: 262.5 kB / 473.4 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.636e-05/0.6021, allocations: 12.55 kB / 473.4 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.6032, allocations: 410.5 kB / 473.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 3.687e-06/0.6032, allocations: 0 / 473.8 MB, free: 6.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.001841/0.605, allocations: 0.6046 MB / 474.4 MB, free: 5.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.6051, allocations: 111.4 kB / 474.5 MB, free: 5.406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009026/0.6061, allocations: 480.8 kB / 475 MB, free: 4.926 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-05/0.6062, allocations: 45.7 kB / 475.1 MB, free: 4.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.6065, allocations: 347.2 kB / 475.4 MB, free: 4.535 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/0.6067, allocations: 205.1 kB / 475.6 MB, free: 4.332 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.065e-05/0.6068, allocations: 19.94 kB / 475.6 MB, free: 4.312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.607, allocations: 342.8 kB / 475.9 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005882/0.6076, allocations: 185.6 kB / 476.1 MB, free: 3.789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007423/0.6083, allocations: 360 kB / 476.5 MB, free: 3.359 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006721/0.609, allocations: 255.2 kB / 476.7 MB, free: 3.105 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.609, allocations: 0 / 476.7 MB, free: 3.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0019/0.6109, allocations: 0.7013 MB / 477.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007465/0.6117, allocations: 1.87 MB / 479.3 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.6117, allocations: 4 kB / 479.3 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007913/0.6125, allocations: 148.8 kB / 479.4 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000931/0.6135, allocations: 119.8 kB / 479.6 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004278/0.6178, allocations: 2.315 MB / 481.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009902/0.6188, allocations: 91.45 kB / 482 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.389e-05/0.6189, allocations: 35.98 kB / 482 MB, free: 13.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.6189, allocations: 7.953 kB / 482 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001865/0.6208, allocations: 0.661 MB / 482.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.6208, allocations: 15.97 kB / 482.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006225/0.6215, allocations: 152.9 kB / 482.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008616/0.6223, allocations: 111.8 kB / 482.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.6264, allocations: 2.279 MB / 485.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008073/0.6273, allocations: 83.64 kB / 485.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-05/0.6273, allocations: 24 kB / 485.3 MB, free: 10.05 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.0003187/0.6277, allocations: 165.6 kB / 485.5 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.6279, allocations: 71.16 kB / 485.6 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.6299, allocations: 0.6628 MB / 486.2 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.6299, allocations: 4 kB / 486.2 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.63, allocations: 96 / 486.2 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.63, allocations: 7.969 kB / 486.2 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/0.6334, allocations: 1.463 MB / 487.7 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.6334, allocations: 0 / 487.7 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/0.6343, allocations: 87.88 kB / 487.8 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000683/0.635, allocations: 140.8 kB / 487.9 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.267e-05/0.6351, allocations: 15.98 kB / 487.9 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004057/0.6391, allocations: 2.314 MB / 490.3 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.6392, allocations: 3.938 kB / 490.3 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002756/0.6419, allocations: 1.012 MB / 491.3 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004385/0.6424, allocations: 212 kB / 491.5 MB, free: 3.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.6426, allocations: 12 kB / 491.5 MB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008348/0.6434, allocations: 55.95 kB / 491.5 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/0.6437, allocations: 68.47 kB / 491.6 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-05/0.6438, allocations: 27.98 kB / 491.6 MB, free: 3.488 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006951/0.6445, allocations: 361.5 kB / 492 MB, free: 3.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6445, allocations: 0 / 492 MB, free: 3.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001741/0.6463, allocations: 359.1 kB / 492.3 MB, free: 2.789 MB / 362.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.0003269/0.6466, allocations: 144.8 kB / 492.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003584/0.6502, allocations: 1.342 MB / 493.8 MB, free: 1.254 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/0.6503, allocations: 4 kB / 493.8 MB, free: 1.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.6515, allocations: 490.4 kB / 494.3 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009847/0.6525, allocations: 102.5 kB / 494.4 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.6558, allocations: 1.021 MB / 495.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.6565, allocations: 0.9588 MB / 496.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000321/0.6568, allocations: 47.42 kB / 496.4 MB, free: 14.57 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6569, allocations: 4 kB / 496.4 MB, free: 14.57 MB / 378.7 MB Notification: Performance of Templates: time 0.02463/0.6815, allocations: 11.78 MB / 0.4963 GB, free: 2.77 MB / 378.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