Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009286/0.0009286, allocations: 86.23 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.681e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.095, allocations: 50.42 MB / 394.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3102/0.4053, allocations: 88.93 MB / 483.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002038/0.4055, allocations: 93.8 kB / 483.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02941/0.4349, allocations: 11.4 MB / 494.8 MB, free: 2.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.435, allocations: 4 kB / 494.8 MB, free: 2.977 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.243e-05/0.435, allocations: 23.94 kB / 494.8 MB, free: 2.953 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.001381/0.4364, allocations: 0.8803 MB / 495.7 MB, free: 2.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.4365, allocations: 12.03 kB / 495.7 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.4366, allocations: 106.5 kB / 495.8 MB, free: 1.895 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.4367, allocations: 94.91 kB / 495.9 MB, free: 1.801 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000713/0.4374, allocations: 493.9 kB / 496.4 MB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.986e-05/0.4375, allocations: 53.31 kB / 496.4 MB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.102e-05/0.4376, allocations: 67.91 kB / 496.5 MB, free: 1.156 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.4387, allocations: 0.7068 MB / 497.2 MB, free: 428 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.4387, allocations: 0 / 497.2 MB, free: 428 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.26e-05/0.4388, allocations: 27.94 kB / 497.2 MB, free: 400 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.4388, allocations: 16 kB / 497.2 MB, free: 384 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008585/0.4397, allocations: 0.505 MB / 497.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/0.4432, allocations: 2.666 MB / 0.4887 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008624/0.4441, allocations: 0.5311 MB / 0.4892 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.4447, allocations: 325.7 kB / 0.4895 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.4447, allocations: 8.375 kB / 0.4895 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005491/0.4453, allocations: 341.8 kB / 0.4899 GB, free: 11.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.434e-06/0.4453, allocations: 0 / 0.4899 GB, free: 11.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.0009681/0.4463, allocations: 0.5343 MB / 0.4904 GB, free: 11.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.659e-05/0.4464, allocations: 141.1 kB / 0.4905 GB, free: 11.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005345/0.4469, allocations: 439.8 kB / 0.4909 GB, free: 10.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.447, allocations: 37.7 kB / 0.491 GB, free: 10.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.4472, allocations: 328.3 kB / 0.4913 GB, free: 10.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.4474, allocations: 173.5 kB / 0.4914 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.4474, allocations: 12 kB / 0.4915 GB, free: 10.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.4476, allocations: 362.8 kB / 0.4918 GB, free: 9.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003/0.4479, allocations: 185.5 kB / 0.492 GB, free: 9.617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004236/0.4483, allocations: 342.9 kB / 0.4923 GB, free: 9.219 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.4487, allocations: 207.2 kB / 0.4925 GB, free: 9.016 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.4487, allocations: 0 / 0.4925 GB, free: 9.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001007/0.4497, allocations: 0.6556 MB / 0.4931 GB, free: 8.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006254/0.4503, allocations: 1.578 MB / 0.4947 GB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.4504, allocations: 7.938 kB / 0.4947 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005114/0.4509, allocations: 154.1 kB / 0.4948 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.4512, allocations: 91.83 kB / 0.4949 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/0.4538, allocations: 2.31 MB / 0.4972 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.4544, allocations: 95.47 kB / 0.4973 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.4544, allocations: 24 kB / 0.4973 GB, free: 3.832 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.4544, allocations: 4 kB / 0.4973 GB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009171/0.4553, allocations: 0.5842 MB / 0.4979 GB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.4554, allocations: 4 kB / 0.4979 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000393/0.4558, allocations: 146 kB / 0.498 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.4561, allocations: 91.77 kB / 0.4981 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.4585, allocations: 2.311 MB / 0.5004 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/0.459, allocations: 75.61 kB / 0.5004 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.459, allocations: 20 kB / 0.5004 GB, free: 480 kB / 378.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_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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 (61): * Single equations (assignments): 60 * 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.000198/0.4592, allocations: 172.1 kB / 0.5006 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.272e-05/0.4593, allocations: 55.34 kB / 0.5007 GB, free: 248 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001695/0.4595, allocations: 61.59 kB / 0.5007 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.4595, allocations: 8 kB / 0.5007 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4596, allocations: 0 / 0.5007 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.4596, allocations: 3.984 kB / 0.5007 GB, free: 172 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.4616, allocations: 1.383 MB / 0.5021 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4616, allocations: 0 / 0.5021 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.4618, allocations: 47.92 kB / 0.5021 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000375/0.4622, allocations: 136.8 kB / 0.5023 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.4622, allocations: 23.97 kB / 0.5023 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002875/0.4651, allocations: 2.311 MB / 0.5045 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4651, allocations: 0 / 0.5045 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.4665, allocations: 0.9201 MB / 0.5054 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.4668, allocations: 188.4 kB / 0.5056 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.4669, allocations: 15.95 kB / 0.5056 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003885/0.4673, allocations: 43.97 kB / 0.5057 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.4675, allocations: 60.47 kB / 0.5057 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/0.4675, allocations: 19.98 kB / 0.5058 GB, free: 10.78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004522/0.468, allocations: 337.5 kB / 0.5061 GB, free: 10.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.468, allocations: 0 / 0.5061 GB, free: 10.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001269/0.4693, allocations: 339.1 kB / 0.5064 GB, free: 10.12 MB / 394.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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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 (40): * Single equations (assignments): 34 * 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.001972/0.4713, allocations: 1.567 MB / 0.5079 GB, free: 8.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.4737, allocations: 1.178 MB / 0.5091 GB, free: 7.312 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.4738, allocations: 4 kB / 0.5091 GB, free: 7.309 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008551/0.4746, allocations: 450.4 kB / 0.5095 GB, free: 6.859 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009552/0.4756, allocations: 115.5 kB / 0.5096 GB, free: 6.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.4782, allocations: 1.065 MB / 0.5107 GB, free: 5.641 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.4788, allocations: 0.9595 MB / 0.5116 GB, free: 4.656 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004795/0.4793, allocations: 124.8 kB / 0.5117 GB, free: 4.531 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.4796, allocations: 223.4 kB / 0.5119 GB, free: 4.312 MB / 394.7 MB Notification: Performance of SimCode: time 1.793e-06/0.4796, allocations: 0 / 0.5119 GB, free: 4.312 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03709/0.5167, allocations: 16.09 MB / 0.5276 GB, free: 4.602 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/0.517, allocations: 231.9 kB / 0.5279 GB, free: 4.293 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.414/2.931, allocations: 4 kB / 0.5279 GB, free: 4.289 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat