Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",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.001278/0.001278, allocations: 172.8 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.399/1.399, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008417/0.0008418, allocations: 78.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.275e-05/2.306e-05, allocations: 0 / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09055, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3052/0.3957, allocations: 84.42 MB / 454.6 MB, free: 8.922 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.396, allocations: 81.45 kB / 454.6 MB, free: 8.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02453/0.4205, allocations: 9.649 MB / 464.3 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4206, allocations: 0 / 464.3 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.551e-05/0.4206, allocations: 11.94 kB / 464.3 MB, free: 0.6055 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.001081/0.4217, allocations: 0.6767 MB / 465 MB, free: 15.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.4217, allocations: 12.03 kB / 465 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.624e-05/0.4218, allocations: 74.48 kB / 465.1 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.925e-05/0.422, allocations: 55.42 kB / 465.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.4225, allocations: 366.9 kB / 465.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.4226, allocations: 40.77 kB / 465.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.42e-05/0.4226, allocations: 43.92 kB / 465.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006769/0.4233, allocations: 431.7 kB / 466 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.4234, allocations: 4 kB / 466 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.045e-05/0.4234, allocations: 16 kB / 466 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.4234, allocations: 8 kB / 466 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005058/0.4239, allocations: 291 kB / 466.3 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.4262, allocations: 1.56 MB / 467.8 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004313/0.4267, allocations: 236.6 kB / 468.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.4268, allocations: 89.25 kB / 468.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.4269, allocations: 7.844 kB / 468.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003287/0.4272, allocations: 220.9 kB / 468.4 MB, free: 12.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.707e-06/0.4272, allocations: 0 / 468.4 MB, free: 12.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005935/0.4278, allocations: 294.5 kB / 468.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.4279, allocations: 110.8 kB / 468.8 MB, free: 11.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/0.4282, allocations: 306.6 kB / 469.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.4283, allocations: 45.64 kB / 469.1 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.4284, allocations: 248 kB / 469.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.148e-05/0.4285, allocations: 82.89 kB / 469.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.807e-05/0.4285, allocations: 8 kB / 469.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4286, allocations: 342.8 kB / 469.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.4288, allocations: 100.9 kB / 469.9 MB, free: 10.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.4291, allocations: 251.2 kB / 470.1 MB, free: 10.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001864/0.4293, allocations: 122 kB / 470.3 MB, free: 10.28 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4293, allocations: 0 / 470.3 MB, free: 10.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000566/0.4298, allocations: 412.2 kB / 470.7 MB, free: 9.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005506/0.4304, allocations: 1.659 MB / 472.3 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4304, allocations: 4 kB / 472.3 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002023/0.4306, allocations: 40.84 kB / 472.4 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.4309, allocations: 67.84 kB / 472.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.4321, allocations: 1.499 MB / 473.9 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.4325, allocations: 75.67 kB / 474 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.658e-05/0.4325, allocations: 19.94 kB / 474 MB, free: 6.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.885e-06/0.4325, allocations: 4 kB / 474 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004923/0.433, allocations: 344.3 kB / 474.4 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.433, allocations: 4 kB / 474.4 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001127/0.4331, allocations: 44.84 kB / 474.4 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.4333, allocations: 63.84 kB / 474.5 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.4345, allocations: 1.488 MB / 476 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.4348, allocations: 63.72 kB / 476 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.4349, allocations: 19.98 kB / 476 MB, free: 4.078 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001717/0.435, allocations: 147.1 kB / 476.2 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.244e-05/0.4351, allocations: 39.53 kB / 476.2 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.4352, allocations: 40.19 kB / 476.3 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.4353, allocations: 8 kB / 476.3 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4353, allocations: 0 / 476.3 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4353, allocations: 3.984 kB / 476.3 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.4365, allocations: 0.8152 MB / 477.1 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4366, allocations: 0 / 477.1 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.4367, allocations: 32.05 kB / 477.1 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/0.4368, allocations: 40.84 kB / 477.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.4369, allocations: 11.95 kB / 477.2 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.438, allocations: 1.417 MB / 478.6 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4381, allocations: 0 / 478.6 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006972/0.4388, allocations: 0.4886 MB / 479.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.4389, allocations: 136.6 kB / 479.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.439, allocations: 11.98 kB / 479.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4392, allocations: 39.97 kB / 479.3 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.737e-05/0.4393, allocations: 27.95 kB / 479.3 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.4394, allocations: 12 kB / 479.3 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000247/0.4396, allocations: 230.2 kB / 479.5 MB, free: 360 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4396, allocations: 4 kB / 479.5 MB, free: 356 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007628/0.4404, allocations: 191.4 kB / 479.7 MB, free: 164 kB / 346.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/0.4414, allocations: 1.072 MB / 480.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009571/0.4424, allocations: 0.6959 MB / 481.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4424, allocations: 0 / 481.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.4427, allocations: 242.9 kB / 481.7 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.443, allocations: 49.19 kB / 481.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.4444, allocations: 0.6515 MB / 482.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.4448, allocations: 0.8508 MB / 483.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002693/0.4451, allocations: 75.22 kB / 483.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.4453, allocations: 128.5 kB / 483.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4453, allocations: 0 / 483.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.4676, allocations: 8.525 MB / 492 MB, free: 3.742 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.4678, allocations: 218.4 kB / 492.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.47, allocations: 0 / 492.2 MB, free: 3.516 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat