Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009961/0.0009959, allocations: 171.9 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.373/1.373, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0007952/0.0007953, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.983e-05, allocations: 7.938 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09762, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3687/0.4664, allocations: 87.64 MB / 457.8 MB, free: 5.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4667, allocations: 79.02 kB / 457.8 MB, free: 5.707 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02867/0.4954, allocations: 10.91 MB / 468.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4955, allocations: 0 / 468.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.861e-05/0.4955, allocations: 19.98 kB / 468.8 MB, free: 12.11 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.001705/0.4973, allocations: 0.8719 MB / 469.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.4973, allocations: 12.03 kB / 469.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.4975, allocations: 102.5 kB / 469.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.4977, allocations: 79.06 kB / 469.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008879/0.4986, allocations: 493.9 kB / 470.3 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.612e-05/0.4986, allocations: 57.25 kB / 470.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.4987, allocations: 64 kB / 470.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.5, allocations: 0.6553 MB / 471.1 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.5001, allocations: 7.938 kB / 471.1 MB, free: 9.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.898e-05/0.5002, allocations: 24 kB / 471.1 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.5002, allocations: 16 kB / 471.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008972/0.5011, allocations: 485.1 kB / 471.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.5051, allocations: 2.588 MB / 474.2 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.5062, allocations: 0.5638 MB / 474.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000555/0.5068, allocations: 306.4 kB / 475.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.5068, allocations: 8.391 kB / 475.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005641/0.5074, allocations: 334.4 kB / 475.4 MB, free: 5.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 2.955e-06/0.5074, allocations: 0 / 475.4 MB, free: 5.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.0009299/0.5083, allocations: 0.5148 MB / 475.9 MB, free: 4.672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/0.5084, allocations: 119.4 kB / 476 MB, free: 4.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005421/0.509, allocations: 423.8 kB / 476.4 MB, free: 4.113 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.5091, allocations: 45.69 kB / 476.5 MB, free: 4.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.5093, allocations: 312.3 kB / 476.8 MB, free: 3.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.5095, allocations: 157.8 kB / 476.9 MB, free: 3.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.5095, allocations: 16 kB / 477 MB, free: 3.582 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.5097, allocations: 366.8 kB / 477.3 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/0.51, allocations: 177.5 kB / 477.5 MB, free: 3.043 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.5104, allocations: 325.5 kB / 477.8 MB, free: 2.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.5107, allocations: 191.2 kB / 478 MB, free: 2.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5108, allocations: 0 / 478 MB, free: 2.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009937/0.5118, allocations: 0.6394 MB / 478.6 MB, free: 1.824 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008157/0.5126, allocations: 1.575 MB / 480.2 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.5126, allocations: 4 kB / 480.2 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005009/0.5131, allocations: 148.2 kB / 480.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003352/0.5135, allocations: 87.84 kB / 480.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00286/0.5163, allocations: 2.312 MB / 482.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/0.5169, allocations: 95.47 kB / 482.9 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.5169, allocations: 20 kB / 482.9 MB, free: 13.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.5169, allocations: 4 kB / 482.9 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009731/0.5179, allocations: 0.5526 MB / 483.4 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.518, allocations: 11.94 kB / 483.4 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003905/0.5183, allocations: 151.7 kB / 483.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.5186, allocations: 83.84 kB / 483.7 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/0.5214, allocations: 2.321 MB / 486 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.5218, allocations: 67.7 kB / 486.1 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.5219, allocations: 28 kB / 486.1 MB, free: 9.984 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * 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.000225/0.5221, allocations: 152.8 kB / 486.2 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.5222, allocations: 63.25 kB / 486.3 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000195/0.5224, allocations: 69.36 kB / 486.4 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.5224, allocations: 8 kB / 486.4 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.5225, allocations: 3.953 kB / 486.4 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.5225, allocations: 3.984 kB / 486.4 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002214/0.5247, allocations: 1.313 MB / 487.7 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5247, allocations: 0 / 487.7 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.5249, allocations: 43.92 kB / 487.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.5253, allocations: 136.8 kB / 487.9 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.566e-05/0.5254, allocations: 15.98 kB / 487.9 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/0.5281, allocations: 2.313 MB / 490.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5281, allocations: 0 / 490.2 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.5294, allocations: 0.8789 MB / 491.1 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000275/0.5297, allocations: 180.3 kB / 491.3 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.981e-05/0.5298, allocations: 19.94 kB / 491.3 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.5302, allocations: 39.97 kB / 491.3 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.5303, allocations: 68.34 kB / 491.4 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.5304, allocations: 12 kB / 491.4 MB, free: 4.422 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004349/0.5308, allocations: 333.5 kB / 491.7 MB, free: 4.098 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5308, allocations: 0 / 491.7 MB, free: 4.098 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001179/0.532, allocations: 323.1 kB / 492 MB, free: 3.781 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00178/0.5338, allocations: 1.516 MB / 493.5 MB, free: 2.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.5359, allocations: 1.143 MB / 494.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5359, allocations: 0 / 494.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006597/0.5366, allocations: 436.8 kB / 495.1 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.5372, allocations: 103 kB / 495.2 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.5396, allocations: 1.009 MB / 496.2 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006037/0.5402, allocations: 0.9438 MB / 497.2 MB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000425/0.5406, allocations: 108.7 kB / 497.3 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.5409, allocations: 215.4 kB / 497.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5409, allocations: 0 / 497.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03848/0.5794, allocations: 15.69 MB / 0.5011 GB, free: 14.45 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/0.5797, allocations: 238 kB / 0.5014 GB, free: 14.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.892, allocations: 0 / 0.5014 GB, free: 14.14 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat