Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0014/0.0014, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.443/1.443, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008446/0.0008448, allocations: 82.66 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.815e-05, allocations: 0 / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07833/0.07838, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2792/0.3577, allocations: 85.46 MB / 455.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.358, allocations: 87.19 kB / 455.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03309/0.3911, allocations: 12.36 MB / 467.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3911, allocations: 0 / 467.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.03e-05/0.3912, allocations: 16 kB / 468 MB, free: 12.88 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.001708/0.3929, allocations: 0.9843 MB / 468.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.3929, allocations: 12.03 kB / 469 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.3931, allocations: 98.83 kB / 469.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008079/0.3939, allocations: 0.5201 MB / 469.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.394, allocations: 54 kB / 469.6 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.3941, allocations: 64 kB / 469.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.3953, allocations: 0.707 MB / 470.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.3953, allocations: 0 / 470.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.255e-05/0.3954, allocations: 28 kB / 470.4 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3954, allocations: 16 kB / 470.4 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008548/0.3963, allocations: 493.1 kB / 470.9 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003805/0.4001, allocations: 2.648 MB / 473.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009306/0.401, allocations: 0.518 MB / 474.1 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004262/0.4015, allocations: 266.5 kB / 474.3 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.473e-05/0.4015, allocations: 16.48 kB / 474.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000649/0.4022, allocations: 405.8 kB / 474.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 3.036e-06/0.4022, allocations: 0 / 474.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.001137/0.4034, allocations: 0.6006 MB / 475.4 MB, free: 5.203 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/0.4034, allocations: 123.4 kB / 475.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000582/0.404, allocations: 476.8 kB / 475.9 MB, free: 4.582 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.046e-05/0.4041, allocations: 41.7 kB / 476 MB, free: 4.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.4044, allocations: 332.7 kB / 476.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.4045, allocations: 197.2 kB / 476.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.514e-05/0.4046, allocations: 16 kB / 476.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4048, allocations: 382.7 kB / 476.9 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.4051, allocations: 181.6 kB / 477.1 MB, free: 3.438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.4056, allocations: 367.9 kB / 477.4 MB, free: 3 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.406, allocations: 247.3 kB / 477.7 MB, free: 2.754 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.406, allocations: 4 kB / 477.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001257/0.4073, allocations: 0.7397 MB / 478.4 MB, free: 1.992 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008071/0.4081, allocations: 1.866 MB / 480.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.4081, allocations: 4 kB / 480.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/0.4086, allocations: 159.8 kB / 480.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004952/0.4091, allocations: 123.8 kB / 480.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.4118, allocations: 2.309 MB / 482.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/0.4123, allocations: 91.45 kB / 483 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.4124, allocations: 31.98 kB / 483 MB, free: 13.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.4124, allocations: 7.953 kB / 483 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001077/0.4135, allocations: 0.6687 MB / 483.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4135, allocations: 4 kB / 483.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003714/0.4139, allocations: 147.3 kB / 483.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/0.4143, allocations: 115.8 kB / 483.9 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/0.4168, allocations: 2.309 MB / 486.2 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005011/0.4173, allocations: 87.45 kB / 486.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-05/0.4174, allocations: 31.98 kB / 486.4 MB, free: 9.625 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.0001994/0.4176, allocations: 156.8 kB / 486.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.4177, allocations: 75.27 kB / 486.6 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.4189, allocations: 0.659 MB / 487.2 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.4189, allocations: 8 kB / 487.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.4189, allocations: 0 / 487.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4189, allocations: 7.984 kB / 487.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.4209, allocations: 1.452 MB / 488.7 MB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.4209, allocations: 3.938 kB / 488.7 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.4213, allocations: 87.88 kB / 488.8 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003702/0.4217, allocations: 144.9 kB / 488.9 MB, free: 6.953 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.4218, allocations: 15.98 kB / 489 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/0.4242, allocations: 2.316 MB / 491.3 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4242, allocations: 0 / 491.3 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.4256, allocations: 1.019 MB / 492.3 MB, free: 3.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.4259, allocations: 212 kB / 492.5 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.426, allocations: 16 kB / 492.5 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004474/0.4265, allocations: 59.89 kB / 492.6 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.4266, allocations: 68.45 kB / 492.6 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.833e-05/0.4267, allocations: 27.92 kB / 492.7 MB, free: 3.051 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004248/0.4271, allocations: 361.6 kB / 493 MB, free: 2.703 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4271, allocations: 0 / 493 MB, free: 2.703 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001082/0.4282, allocations: 355.2 kB / 493.4 MB, free: 2.355 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.0002001/0.4284, allocations: 139.2 kB / 493.5 MB, free: 2.211 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.4304, allocations: 1.361 MB / 494.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4305, allocations: 1.062 kB / 494.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006499/0.4311, allocations: 489.3 kB / 495.3 MB, free: 316 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.4316, allocations: 114.6 kB / 495.5 MB, free: 204 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.4335, allocations: 0.9916 MB / 496.4 MB, free: 15.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.434, allocations: 0.9638 MB / 497.4 MB, free: 14.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004929/0.4345, allocations: 121.2 kB / 497.5 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.4346, allocations: 39.42 kB / 497.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of SimCode: time 4.6e-07/0.4346, allocations: 4 kB / 497.6 MB, free: 14.03 MB / 378.7 MB Notification: Performance of Templates: time 0.01827/0.4529, allocations: 11.51 MB / 0.4971 GB, free: 2.496 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat","/var/lib/jenkins/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_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches