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_Characteristic.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_Characteristic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",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.002286/0.002292, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 92.42 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.965e-05/1.976e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.33, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.4682, allocations: 83.96 MB / 446.4 MB, free: 2.238 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003569/0.4686, allocations: 84.56 kB / 446.5 MB, free: 2.156 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04245/0.5111, allocations: 9.682 MB / 456.2 MB, free: 8.52 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.5111, allocations: 0 / 456.2 MB, free: 8.52 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.113e-05/0.5112, allocations: 12 kB / 456.2 MB, free: 8.508 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.001861/0.5131, allocations: 0.7071 MB / 456.9 MB, free: 7.754 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.5131, allocations: 8.031 kB / 456.9 MB, free: 7.746 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.5133, allocations: 55.34 kB / 457 MB, free: 7.691 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008166/0.5141, allocations: 378.8 kB / 457.3 MB, free: 7.281 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.265e-05/0.5142, allocations: 12 kB / 457.3 MB, free: 7.27 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.5143, allocations: 31.98 kB / 457.4 MB, free: 7.238 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008167/0.5151, allocations: 275.6 kB / 457.6 MB, free: 6.969 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009887/0.5161, allocations: 386.1 kB / 458 MB, free: 6.578 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.5162, allocations: 0 / 458 MB, free: 6.578 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.5162, allocations: 4 kB / 458 MB, free: 6.574 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.5163, allocations: 8 kB / 458 MB, free: 6.566 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003791/0.5201, allocations: 1.496 MB / 459.5 MB, free: 4.984 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.5213, allocations: 335.3 kB / 459.9 MB, free: 4.648 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.5216, allocations: 97.31 kB / 459.9 MB, free: 4.551 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.5217, allocations: 4.234 kB / 459.9 MB, free: 4.547 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000542/0.5222, allocations: 229 kB / 460.2 MB, free: 4.305 MB / 347.1 MB Notification: Performance of pre-optimization done (n=32): time 2.665e-06/0.5222, allocations: 0 / 460.2 MB, free: 4.305 MB / 347.1 MB Notification: Performance of matching and sorting (n=32): time 0.0009284/0.5232, allocations: 298 kB / 460.5 MB, free: 4.004 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.5233, allocations: 110.8 kB / 460.6 MB, free: 3.871 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004353/0.5237, allocations: 265 kB / 460.8 MB, free: 3.605 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.637e-05/0.5238, allocations: 29.7 kB / 460.9 MB, free: 3.57 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.524, allocations: 290.5 kB / 461.1 MB, free: 3.281 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.5242, allocations: 90.66 kB / 461.2 MB, free: 3.191 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.5242, allocations: 0 / 461.2 MB, free: 3.191 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.5244, allocations: 334.8 kB / 461.6 MB, free: 2.855 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.5246, allocations: 99.2 kB / 461.7 MB, free: 2.762 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004112/0.5251, allocations: 243.5 kB / 461.9 MB, free: 2.453 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.5254, allocations: 114.2 kB / 462 MB, free: 2.344 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.5254, allocations: 0 / 462 MB, free: 2.344 MB / 347.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000908/0.5263, allocations: 362.4 kB / 462.4 MB, free: 1.98 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007497/0.5271, allocations: 1.66 MB / 464 MB, free: 196 kB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.5271, allocations: 7.938 kB / 464 MB, free: 188 kB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002922/0.5274, allocations: 40.84 kB / 464.1 MB, free: 144 kB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005518/0.528, allocations: 83.83 kB / 464.1 MB, free: 60 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/0.5298, allocations: 1.435 MB / 465.6 MB, free: 14.5 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006097/0.5304, allocations: 63.64 kB / 465.6 MB, free: 14.44 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.134e-05/0.5305, allocations: 16 kB / 465.7 MB, free: 14.43 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.5305, allocations: 5.25 kB / 465.7 MB, free: 14.42 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007925/0.5313, allocations: 292.5 kB / 466 MB, free: 14.13 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.5313, allocations: 4 kB / 466 MB, free: 14.13 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001963/0.5315, allocations: 45.31 kB / 466 MB, free: 14.08 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.532, allocations: 79.84 kB / 466.1 MB, free: 14 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.5336, allocations: 1.447 MB / 467.5 MB, free: 12.44 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.5341, allocations: 47.72 kB / 467.6 MB, free: 12.39 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.5341, allocations: 20 kB / 467.6 MB, free: 12.38 MB / 363.1 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 (47): * Single equations (assignments): 46 * 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.0002127/0.5344, allocations: 131.1 kB / 467.7 MB, free: 12.24 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008385/0.5352, allocations: 294.2 kB / 468 MB, free: 11.95 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/0.5353, allocations: 31.62 kB / 468 MB, free: 11.91 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.5355, allocations: 36.31 kB / 468.1 MB, free: 11.88 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.5355, allocations: 4 kB / 468.1 MB, free: 11.88 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.5355, allocations: 0.6562 kB / 468.1 MB, free: 11.88 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.5355, allocations: 7.938 kB / 468.1 MB, free: 11.87 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.5372, allocations: 0.7687 MB / 468.9 MB, free: 11.05 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.5372, allocations: 128 / 468.9 MB, free: 11.05 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000399/0.5376, allocations: 47.97 kB / 468.9 MB, free: 11.01 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001957/0.5378, allocations: 32.84 kB / 468.9 MB, free: 10.97 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.5379, allocations: 11.98 kB / 468.9 MB, free: 10.96 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.5394, allocations: 1.349 MB / 470.3 MB, free: 9.5 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5395, allocations: 4.062 kB / 470.3 MB, free: 9.496 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.5406, allocations: 0.5004 MB / 470.8 MB, free: 8.977 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002327/0.5408, allocations: 136.7 kB / 470.9 MB, free: 8.824 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/0.5409, allocations: 96 / 470.9 MB, free: 8.824 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005125/0.5415, allocations: 47.95 kB / 471 MB, free: 8.777 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.5416, allocations: 35.89 kB / 471 MB, free: 8.742 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.5417, allocations: 20.11 kB / 471 MB, free: 8.723 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003199/0.542, allocations: 198.4 kB / 471.2 MB, free: 8.531 MB / 363.1 MB Notification: Performance of sort global known variables: time 2.544e-06/0.542, allocations: 0 / 471.2 MB, free: 8.531 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001154/0.5432, allocations: 183.2 kB / 471.4 MB, free: 8.352 MB / 363.1 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 (28): * Single equations (assignments): 22 * 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.001556/0.5447, allocations: 1.072 MB / 472.5 MB, free: 7.25 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.5463, allocations: 0.6501 MB / 473.1 MB, free: 6.582 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.5463, allocations: 0 / 473.1 MB, free: 6.582 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004699/0.5468, allocations: 237.6 kB / 473.4 MB, free: 6.34 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005486/0.5473, allocations: 42.8 kB / 473.4 MB, free: 6.301 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.5497, allocations: 0.6805 MB / 474.1 MB, free: 5.578 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.5503, allocations: 0.847 MB / 474.9 MB, free: 4.707 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.5506, allocations: 139.4 kB / 475.1 MB, free: 4.57 MB / 363.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5506, allocations: 3.75 kB / 475.1 MB, free: 4.57 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.887/3.438, allocations: 8.448 MB / 483.5 MB, free: 12.16 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic.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_Characteristic_res.mat does not exist to compare? outputFormat=mat