Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_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.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 176.2 kB / 8.348 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.35/1.35, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009794/0.0009796, allocations: 91.55 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.541e-05/1.554e-05, allocations: 4 kB / 337.2 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1181, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.488, allocations: 85.12 MB / 472.7 MB, free: 9.625 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4884, allocations: 83.94 kB / 472.8 MB, free: 9.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02724/0.5157, allocations: 10.29 MB / 483.1 MB, free: 15.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5157, allocations: 0 / 483.1 MB, free: 15.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.395e-05/0.5158, allocations: 12 kB / 483.1 MB, free: 15.21 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001164/0.5169, allocations: 0.6998 MB / 483.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.517, allocations: 15.97 kB / 483.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.5171, allocations: 55.34 kB / 483.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.5177, allocations: 383.4 kB / 484.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.5177, allocations: 12 kB / 484.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-05/0.5178, allocations: 28 kB / 484.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005206/0.5183, allocations: 302.5 kB / 484.6 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.5189, allocations: 413.9 kB / 485 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.519, allocations: 11.89 kB / 485 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.519, allocations: 0 / 485 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.519, allocations: 12 kB / 485 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.5213, allocations: 1.548 MB / 486.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005164/0.5219, allocations: 274.6 kB / 486.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.522, allocations: 96.83 kB / 486.9 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.5221, allocations: 7.938 kB / 486.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003514/0.5224, allocations: 228.9 kB / 487.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.944e-06/0.5224, allocations: 0 / 487.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005806/0.523, allocations: 290 kB / 487.4 MB, free: 10.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.085e-05/0.5231, allocations: 136.5 kB / 487.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/0.5234, allocations: 277.1 kB / 487.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.5235, allocations: 41.69 kB / 487.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.5237, allocations: 243.9 kB / 488.1 MB, free: 9.918 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.703e-05/0.5237, allocations: 91.09 kB / 488.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.785e-05/0.5238, allocations: 4 kB / 488.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5239, allocations: 342.8 kB / 488.5 MB, free: 9.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.5241, allocations: 112.8 kB / 488.6 MB, free: 9.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.5243, allocations: 255.5 kB / 488.9 MB, free: 9.051 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.5245, allocations: 131.9 kB / 489 MB, free: 8.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.5245, allocations: 3.938 kB / 489 MB, free: 8.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005548/0.5251, allocations: 386.7 kB / 489.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005841/0.5257, allocations: 1.66 MB / 491 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.5257, allocations: 4 kB / 491.1 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.5259, allocations: 48.84 kB / 491.1 MB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.5262, allocations: 67.91 kB / 491.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.5274, allocations: 1.455 MB / 492.6 MB, free: 5.051 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.5278, allocations: 63.72 kB / 492.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.5278, allocations: 23.98 kB / 492.7 MB, free: 4.965 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.5278, allocations: 4 kB / 492.7 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004632/0.5283, allocations: 308.7 kB / 493 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.5283, allocations: 4 kB / 493 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001147/0.5284, allocations: 44.83 kB / 493.1 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.5287, allocations: 71.8 kB / 493.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.5297, allocations: 1.44 MB / 494.6 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002989/0.53, allocations: 55.72 kB / 494.6 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.53, allocations: 20 kB / 494.6 MB, free: 2.906 MB / 362.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_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,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 (48): * Single equations (assignments): 47 * 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.0001569/0.5302, allocations: 132 kB / 494.8 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004656/0.5307, allocations: 294.2 kB / 495.1 MB, free: 2.477 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.906e-05/0.5307, allocations: 39.52 kB / 495.1 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.295e-05/0.5308, allocations: 40.39 kB / 495.1 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.5308, allocations: 7.938 kB / 495.1 MB, free: 2.383 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.5308, allocations: 0 / 495.1 MB, free: 2.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.5309, allocations: 7.938 kB / 495.2 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.5319, allocations: 0.7767 MB / 495.9 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5319, allocations: 3.953 kB / 495.9 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.5321, allocations: 35.97 kB / 496 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.5322, allocations: 40.84 kB / 496 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.5323, allocations: 4 kB / 496 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009779/0.5332, allocations: 1.354 MB / 497.4 MB, free: 0 / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5332, allocations: 0 / 497.4 MB, free: 0 / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006844/0.5339, allocations: 0.5126 MB / 497.9 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.5341, allocations: 144.6 kB / 498 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/0.5342, allocations: 4 kB / 498 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.5344, allocations: 32.03 kB / 498.1 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.5345, allocations: 35.95 kB / 498.1 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.5346, allocations: 11.92 kB / 498.1 MB, free: 15.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002291/0.5348, allocations: 216.6 kB / 498.3 MB, free: 15.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5348, allocations: 0 / 498.3 MB, free: 15.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007891/0.5356, allocations: 191.3 kB / 498.5 MB, free: 14.82 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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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 (27): * Single equations (assignments): 21 * 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.0009791/0.5366, allocations: 1.067 MB / 499.6 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009374/0.5375, allocations: 0.6789 MB / 0.4885 GB, free: 13.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5376, allocations: 0 / 0.4885 GB, free: 13.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.5379, allocations: 225.7 kB / 0.4887 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.5384, allocations: 53.73 kB / 0.4888 GB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.5401, allocations: 0.6779 MB / 0.4894 GB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.5406, allocations: 0.8584 MB / 0.4903 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002989/0.5409, allocations: 87.2 kB / 0.4904 GB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.5411, allocations: 139.4 kB / 0.4905 GB, free: 10.93 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5411, allocations: 3.938 kB / 0.4905 GB, free: 10.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03116/0.5723, allocations: 7.952 MB / 0.4983 GB, free: 3.031 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.5726, allocations: 181.7 kB / 0.4984 GB, free: 2.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.79, allocations: 1.875 kB / 0.4984 GB, free: 2.84 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat