Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002298/0.002298, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.2 MB / 219.4 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.001182/0.001182, allocations: 82.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.346e-05/3.351e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1002, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5238, allocations: 84.42 MB / 453.6 MB, free: 8.836 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/0.5242, allocations: 85.81 kB / 453.7 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04181/0.566, allocations: 9.643 MB / 463.3 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5661, allocations: 0 / 463.3 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.105e-05/0.5661, allocations: 12 kB / 463.4 MB, free: 0.6094 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.001855/0.568, allocations: 0.6829 MB / 464 MB, free: 15.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.5681, allocations: 8.031 kB / 464 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.5682, allocations: 72.97 kB / 464.1 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.5684, allocations: 55.44 kB / 464.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008648/0.5693, allocations: 380.5 kB / 464.5 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.5693, allocations: 31.41 kB / 464.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.5695, allocations: 39.75 kB / 464.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.5706, allocations: 437 kB / 465 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.5706, allocations: 0 / 465 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.644e-05/0.5707, allocations: 19.36 kB / 465.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.5707, allocations: 8 kB / 465.1 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008322/0.5716, allocations: 296.4 kB / 465.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004112/0.5757, allocations: 1.556 MB / 466.9 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007367/0.5765, allocations: 238.9 kB / 467.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.5768, allocations: 89.25 kB / 467.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.5768, allocations: 3.859 kB / 467.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005534/0.5774, allocations: 216.9 kB / 467.4 MB, free: 12.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.116e-06/0.5774, allocations: 0 / 467.4 MB, free: 12.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001034/0.5784, allocations: 298.5 kB / 467.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.5786, allocations: 106.8 kB / 467.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006156/0.5792, allocations: 302.6 kB / 468.1 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.879e-05/0.5793, allocations: 37.7 kB / 468.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/0.5796, allocations: 302.5 kB / 468.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.5797, allocations: 82.89 kB / 468.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.5797, allocations: 4 kB / 468.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.5799, allocations: 334.7 kB / 468.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003051/0.5802, allocations: 104.9 kB / 469 MB, free: 11.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004561/0.5807, allocations: 243.2 kB / 469.2 MB, free: 10.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.5811, allocations: 126 kB / 469.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.5811, allocations: 0 / 469.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001008/0.5821, allocations: 392.8 kB / 469.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000827/0.5829, allocations: 1.662 MB / 471.4 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.914e-05/0.583, allocations: 4 kB / 471.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00034/0.5833, allocations: 44.83 kB / 471.4 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/0.5838, allocations: 67.84 kB / 471.5 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001917/0.5858, allocations: 1.495 MB / 473 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007324/0.5865, allocations: 79.66 kB / 473.1 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.5866, allocations: 20 kB / 473.1 MB, free: 6.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.5866, allocations: 7.938 kB / 473.1 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009136/0.5876, allocations: 340.6 kB / 473.4 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.5876, allocations: 4 kB / 473.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002058/0.5878, allocations: 44.98 kB / 473.5 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.5882, allocations: 59.84 kB / 473.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.59, allocations: 1.495 MB / 475 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005037/0.5905, allocations: 55.73 kB / 475.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.341e-05/0.5906, allocations: 23.98 kB / 475.1 MB, free: 4.414 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.0002378/0.5909, allocations: 143 kB / 475.3 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.591, allocations: 31.62 kB / 475.3 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001382/0.5911, allocations: 40.19 kB / 475.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.5912, allocations: 4 kB / 475.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5912, allocations: 0 / 475.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.5912, allocations: 7.984 kB / 475.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.5931, allocations: 0.823 MB / 476.2 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.5931, allocations: 0 / 476.2 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.5934, allocations: 23.92 kB / 476.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.5936, allocations: 44.84 kB / 476.2 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.5937, allocations: 3.953 kB / 476.2 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.5954, allocations: 1.421 MB / 477.7 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5955, allocations: 4.062 kB / 477.7 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.5967, allocations: 0.4886 MB / 478.1 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002423/0.597, allocations: 132.8 kB / 478.3 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.28e-05/0.5971, allocations: 11.98 kB / 478.3 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004817/0.5976, allocations: 39.97 kB / 478.3 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.5978, allocations: 31.89 kB / 478.4 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.5978, allocations: 8 kB / 478.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004657/0.5983, allocations: 230.2 kB / 478.6 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5983, allocations: 0 / 478.6 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001117/0.5994, allocations: 199.3 kB / 478.8 MB, free: 0.5039 MB / 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.001797/0.6012, allocations: 1.068 MB / 479.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.603, allocations: 0.6774 MB / 480.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.603, allocations: 0 / 480.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.6035, allocations: 236 kB / 480.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005799/0.6041, allocations: 51.38 kB / 480.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.6066, allocations: 0.6779 MB / 481.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.6072, allocations: 0.8389 MB / 482.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/0.6076, allocations: 135.3 kB / 482.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.6076, allocations: 4 kB / 482.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.865/3.473, allocations: 8.405 MB / 490.9 MB, free: 4.27 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat