Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.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.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",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.001238/0.001238, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.000898/0.0008981, allocations: 94.22 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.954e-05/1.968e-05, allocations: 0 / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 50.41 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.4662, allocations: 88.19 MB / 475.8 MB, free: 6.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.4666, allocations: 84.78 kB / 475.8 MB, free: 6.492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03784/0.5044, allocations: 14.27 MB / 490.1 MB, free: 8.148 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5045, allocations: 0 / 490.1 MB, free: 8.148 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.752e-05/0.5045, allocations: 16 kB / 490.1 MB, free: 8.133 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.001469/0.506, allocations: 0.88 MB / 491 MB, free: 7.199 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.5061, allocations: 15.97 kB / 491 MB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.5062, allocations: 86.97 kB / 491.1 MB, free: 7.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007518/0.507, allocations: 0.5038 MB / 491.6 MB, free: 6.547 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.507, allocations: 24 kB / 491.6 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.423e-05/0.5071, allocations: 44 kB / 491.7 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000818/0.5079, allocations: 482.5 kB / 492.2 MB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009679/0.5089, allocations: 0.6184 MB / 492.8 MB, free: 5.363 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.509, allocations: 4 kB / 492.8 MB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.185e-05/0.509, allocations: 0 / 492.8 MB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.509, allocations: 16 kB / 492.8 MB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/0.5125, allocations: 2.543 MB / 495.3 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.5133, allocations: 0.5018 MB / 495.8 MB, free: 2.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003534/0.5136, allocations: 258.5 kB / 496.1 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.279e-05/0.5137, allocations: 8.422 kB / 496.1 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000511/0.5142, allocations: 334 kB / 496.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 2.013e-06/0.5142, allocations: 0 / 496.4 MB, free: 1.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008724/0.5151, allocations: 0.4993 MB / 496.9 MB, free: 1.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/0.5152, allocations: 137.1 kB / 497.1 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.5156, allocations: 369.1 kB / 497.4 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.5157, allocations: 37.7 kB / 497.5 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.5159, allocations: 324.1 kB / 497.8 MB, free: 172 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.516, allocations: 161.7 kB / 497.9 MB, free: 8 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.516, allocations: 4 kB / 497.9 MB, free: 4 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.5162, allocations: 366.8 kB / 498.3 MB, free: 15.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.5165, allocations: 173.5 kB / 498.5 MB, free: 15.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003604/0.5168, allocations: 333.4 kB / 498.8 MB, free: 15.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.5171, allocations: 202 kB / 499 MB, free: 14.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.5171, allocations: 0 / 499 MB, free: 14.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0008931/0.518, allocations: 0.6009 MB / 499.6 MB, free: 14.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004989/0.5186, allocations: 1.58 MB / 0.4894 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.5186, allocations: 7.984 kB / 0.4894 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004769/0.5191, allocations: 148.9 kB / 0.4896 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.5194, allocations: 91.83 kB / 0.4897 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.522, allocations: 2.29 MB / 0.4919 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005049/0.5225, allocations: 75.48 kB / 0.492 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.5225, allocations: 24 kB / 0.492 GB, free: 9.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.5225, allocations: 5.406 kB / 0.492 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008595/0.5234, allocations: 0.5097 MB / 0.4925 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.5234, allocations: 4 kB / 0.4925 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003641/0.5238, allocations: 157.2 kB / 0.4926 GB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/0.5241, allocations: 87.83 kB / 0.4927 GB, free: 9.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/0.5266, allocations: 2.278 MB / 0.4949 GB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.527, allocations: 55.61 kB / 0.495 GB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.5271, allocations: 28 kB / 0.495 GB, free: 6.582 MB / 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: 29 ($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,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_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 (63): * Single equations (assignments): 62 * 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.0002048/0.5273, allocations: 151.7 kB / 0.4952 GB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007588/0.5281, allocations: 499.3 kB / 0.4956 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.5282, allocations: 59.33 kB / 0.4957 GB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.5283, allocations: 57.59 kB / 0.4958 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.5283, allocations: 4 kB / 0.4958 GB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.5283, allocations: 0 / 0.4958 GB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.5284, allocations: 3.984 kB / 0.4958 GB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.5301, allocations: 1.238 MB / 0.497 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.5301, allocations: 0 / 0.497 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.5304, allocations: 51.91 kB / 0.497 GB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003841/0.5308, allocations: 138.3 kB / 0.4972 GB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.5308, allocations: 4 kB / 0.4972 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002231/0.533, allocations: 2.165 MB / 0.4993 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.5331, allocations: 3.953 kB / 0.4993 GB, free: 2.047 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.5342, allocations: 0.8585 MB / 0.5001 GB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.5345, allocations: 180.5 kB / 0.5003 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.764e-05/0.5346, allocations: 7.953 kB / 0.5003 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003692/0.535, allocations: 31.97 kB / 0.5003 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.5351, allocations: 76.44 kB / 0.5004 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.5352, allocations: 20 kB / 0.5004 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000313/0.5355, allocations: 283 kB / 0.5007 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5355, allocations: 0 / 0.5007 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00105/0.5366, allocations: 310.9 kB / 0.501 GB, free: 264 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.thyristor_n1.off,rectifier.thyristor_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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.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.001507/0.5381, allocations: 1.433 MB / 0.5024 GB, free: 14.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.5398, allocations: 1.123 MB / 0.5035 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.5398, allocations: 0 / 0.5035 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.5404, allocations: 428.6 kB / 0.5039 GB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.5409, allocations: 83.09 kB / 0.504 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.543, allocations: 0.9986 MB / 0.5049 GB, free: 12.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.5435, allocations: 0.9667 MB / 0.5059 GB, free: 11.13 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000408/0.5439, allocations: 112.8 kB / 0.506 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.5442, allocations: 219.4 kB / 0.5062 GB, free: 10.8 MB / 394.7 MB Notification: Performance of SimCode: time 9.01e-07/0.5442, allocations: 0 / 0.5062 GB, free: 10.8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03811/0.5823, allocations: 14.49 MB / 0.5204 GB, free: 12.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.5826, allocations: 193.6 kB / 0.5205 GB, free: 12.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/3.083, allocations: 7.312 kB / 0.5206 GB, free: 12.26 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat