Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_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.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_3_cpp_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_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001471/0.00147, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.924/1.924, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001146/0.001146, allocations: 99.48 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003956, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.341, allocations: 47.57 MB / 374.7 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.4848, allocations: 87.63 MB / 462.3 MB, free: 9.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003526/0.4852, allocations: 91.94 kB / 462.4 MB, free: 9.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05722/0.5425, allocations: 13.63 MB / 476 MB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5425, allocations: 0 / 476 MB, free: 11.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.613e-05/0.5426, allocations: 19.98 kB / 476 MB, free: 11.29 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002755/0.5454, allocations: 0.9418 MB / 477 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.5455, allocations: 8.031 kB / 477 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002895/0.5458, allocations: 106.5 kB / 477.1 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.546, allocations: 86.97 kB / 477.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.5474, allocations: 0.4901 MB / 477.6 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-05/0.5475, allocations: 57.3 kB / 477.7 MB, free: 9.492 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.5477, allocations: 68 kB / 477.8 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002021/0.5497, allocations: 0.6864 MB / 478.5 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.544e-05/0.5498, allocations: 0 / 478.5 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/0.5499, allocations: 31.98 kB / 478.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.55, allocations: 20 kB / 478.5 MB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.5517, allocations: 0.5243 MB / 479 MB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006365/0.5581, allocations: 2.608 MB / 481.6 MB, free: 5.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.5601, allocations: 0.5842 MB / 482.2 MB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.854e-05/0.5602, allocations: 8.438 kB / 482.2 MB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000912/0.5611, allocations: 345.7 kB / 482.6 MB, free: 4.453 MB / 362.7 MB Notification: Performance of pre-optimization done (n=55): time 2.986e-06/0.5611, allocations: 0 / 482.6 MB, free: 4.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.004409/0.5655, allocations: 0.9769 MB / 483.5 MB, free: 3.449 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.5657, allocations: 115.4 kB / 483.7 MB, free: 3.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.5667, allocations: 449 kB / 484.1 MB, free: 2.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.5668, allocations: 45.69 kB / 484.1 MB, free: 2.816 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.5672, allocations: 347.3 kB / 484.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.5674, allocations: 161.8 kB / 484.6 MB, free: 2.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-05/0.5675, allocations: 16 kB / 484.7 MB, free: 2.301 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.5677, allocations: 334.8 kB / 485 MB, free: 1.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006946/0.5684, allocations: 209.2 kB / 485.2 MB, free: 1.758 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008431/0.5693, allocations: 366.6 kB / 485.5 MB, free: 1.344 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007584/0.57, allocations: 222.1 kB / 485.8 MB, free: 1.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5701, allocations: 0 / 485.8 MB, free: 1.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001993/0.5721, allocations: 0.6637 MB / 486.4 MB, free: 464 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008225/0.5729, allocations: 1.57 MB / 488 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.5729, allocations: 4 kB / 488 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008449/0.5738, allocations: 157.6 kB / 488.1 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.5745, allocations: 91.83 kB / 488.2 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/0.5792, allocations: 2.4 MB / 490.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008879/0.5802, allocations: 83.5 kB / 490.7 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.296e-05/0.5803, allocations: 27.98 kB / 490.7 MB, free: 11.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.5803, allocations: 5.406 kB / 490.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001779/0.5821, allocations: 0.5916 MB / 491.3 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5821, allocations: 4.5 kB / 491.3 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006832/0.5828, allocations: 152.8 kB / 491.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.5834, allocations: 79.84 kB / 491.6 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004635/0.588, allocations: 2.383 MB / 494 MB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000638/0.5887, allocations: 63.61 kB / 494 MB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-05/0.5888, allocations: 24 kB / 494 MB, free: 8.426 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,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,$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 () * Number of clocked 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.0006454/0.5894, allocations: 313.2 kB / 494.4 MB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.5896, allocations: 55.34 kB / 494.4 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.5898, allocations: 65.45 kB / 494.5 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.5899, allocations: 15.94 kB / 494.5 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5899, allocations: 0 / 494.5 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5899, allocations: 4 kB / 494.5 MB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.5933, allocations: 1.362 MB / 495.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5933, allocations: 0 / 495.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004075/0.5937, allocations: 43.91 kB / 495.9 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007385/0.5945, allocations: 148.8 kB / 496 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.516e-05/0.5946, allocations: 16 kB / 496.1 MB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004541/0.5991, allocations: 2.309 MB / 498.4 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.5992, allocations: 3.953 kB / 498.4 MB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.6018, allocations: 0.9054 MB / 499.3 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/0.6022, allocations: 192.2 kB / 499.5 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.6024, allocations: 12 kB / 499.5 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006096/0.603, allocations: 43.97 kB / 499.5 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.6033, allocations: 72.44 kB / 499.6 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.342e-05/0.6034, allocations: 16 kB / 499.6 MB, free: 2.637 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007354/0.6041, allocations: 338.9 kB / 499.9 MB, free: 2.309 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6041, allocations: 7.938 kB / 499.9 MB, free: 2.301 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001505/0.6057, allocations: 327.2 kB / 0.4885 GB, free: 1.98 MB / 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,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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Number of clocked states: 0 () * 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.003053/0.6087, allocations: 1.492 MB / 0.49 GB, free: 468 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2889/0.8976, allocations: 1.193 MB / 0.4912 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/0.8977, allocations: 1.438 kB / 0.4912 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.899, allocations: 453.7 kB / 0.4916 GB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009814/0.9001, allocations: 97.89 kB / 0.4917 GB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005661/0.9057, allocations: 4.517 MB / 0.4961 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006305/0.9064, allocations: 0.9389 MB / 0.497 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005256/0.907, allocations: 230.3 kB / 0.4972 GB, free: 101.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.493e-06/0.907, allocations: 0 / 0.4972 GB, free: 101.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.843/3.75, allocations: 13.1 MB / 0.51 GB, free: 99.17 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat