Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.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.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 186.4 kB / 8.134 MB, free: 2.195 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.095/1.095, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0009136/0.0009137, allocations: 101.5 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08744/0.08838, allocations: 55.84 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.2712, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08399/0.3553, allocations: 88.19 MB / 475.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.3555, allocations: 84.47 kB / 475.3 MB, free: 14.47 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.02923/0.3848, allocations: 11.96 MB / 487.3 MB, free: 2.453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.3848, allocations: 12 kB / 487.3 MB, free: 2.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.385, allocations: 90.97 kB / 487.4 MB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007261/0.3857, allocations: 0.494 MB / 487.9 MB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.3858, allocations: 24 kB / 487.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.91e-05/0.3859, allocations: 40 kB / 487.9 MB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008094/0.3867, allocations: 478.5 kB / 488.4 MB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009273/0.3876, allocations: 0.6028 MB / 489 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.3876, allocations: 4 kB / 489 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.3877, allocations: 3.984 kB / 489 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.3877, allocations: 23.91 kB / 489 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003816/0.3915, allocations: 2.535 MB / 491.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008405/0.3924, allocations: 467.8 kB / 492 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/0.3929, allocations: 250.5 kB / 492.3 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.3929, allocations: 8.422 kB / 492.3 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004706/0.3934, allocations: 311.8 kB / 492.6 MB, free: 12.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 1.923e-06/0.3934, allocations: 480 / 492.6 MB, free: 12.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.000806/0.3942, allocations: 488.7 kB / 493 MB, free: 12.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.3943, allocations: 149 kB / 493.2 MB, free: 12.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003949/0.3947, allocations: 373 kB / 493.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.3947, allocations: 29.7 kB / 493.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.3949, allocations: 264.1 kB / 493.8 MB, free: 11.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.395, allocations: 157.7 kB / 494 MB, free: 11.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-05/0.3951, allocations: 4 kB / 494 MB, free: 11.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3952, allocations: 362.8 kB / 494.4 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.3955, allocations: 173.3 kB / 494.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003604/0.3959, allocations: 336.4 kB / 494.8 MB, free: 10.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.3962, allocations: 193.4 kB / 495 MB, free: 10.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.3962, allocations: 4 kB / 495 MB, free: 10.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009238/0.3971, allocations: 0.5946 MB / 495.6 MB, free: 9.719 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004559/0.3976, allocations: 1.57 MB / 497.2 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3976, allocations: 4 kB / 497.2 MB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004409/0.398, allocations: 155.8 kB / 497.4 MB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.3984, allocations: 87.83 kB / 497.4 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.4007, allocations: 2.059 MB / 499.5 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/0.4011, allocations: 79.66 kB / 499.6 MB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-05/0.4012, allocations: 24 kB / 499.6 MB, free: 5.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.4012, allocations: 11.92 kB / 499.6 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000784/0.402, allocations: 0.5037 MB / 0.4884 GB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.402, allocations: 4 kB / 0.4884 GB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003702/0.4024, allocations: 155.9 kB / 0.4886 GB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.4027, allocations: 83.83 kB / 0.4886 GB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.4048, allocations: 2.053 MB / 0.4906 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.4052, allocations: 59.75 kB / 0.4907 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.4053, allocations: 31.98 kB / 0.4907 GB, free: 2.496 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: 27 ($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,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,rectifier.diode_n1.off,rectifier.diode_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 () * 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.0001425/0.4054, allocations: 140 kB / 0.4909 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.502e-05/0.4055, allocations: 55.34 kB / 0.4909 GB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.4056, allocations: 61.27 kB / 0.491 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.4056, allocations: 4 kB / 0.491 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-06/0.4056, allocations: 0 / 0.491 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.4056, allocations: 0 / 0.491 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.4073, allocations: 1.231 MB / 0.4922 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4073, allocations: 0 / 0.4922 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.4076, allocations: 51.91 kB / 0.4922 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003614/0.408, allocations: 140.7 kB / 0.4924 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.408, allocations: 4 kB / 0.4924 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09625/0.5043, allocations: 2.034 MB / 0.4944 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5043, allocations: 3.281 kB / 0.4944 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001044/0.5054, allocations: 0.8595 MB / 0.4952 GB, free: 132.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001278/0.5066, allocations: 1.49 MB / 0.4966 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.5068, allocations: 184.2 kB / 0.4968 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.636e-05/0.5069, allocations: 5.5 kB / 0.4968 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.5073, allocations: 39.92 kB / 0.4969 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.953e-05/0.5074, allocations: 41.94 kB / 0.4969 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.5074, allocations: 14.12 kB / 0.4969 GB, free: 131.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002474/0.5077, allocations: 276.1 kB / 0.4972 GB, free: 131.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001881/0.5096, allocations: 299.4 kB / 0.4975 GB, free: 131.8 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.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * 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.0001566/0.5097, allocations: 145.5 kB / 0.4976 GB, free: 131.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.511, allocations: 1.025 MB / 0.4986 GB, free: 131.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.5111, allocations: 6.781 kB / 0.4986 GB, free: 131.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004279/0.5115, allocations: 387.2 kB / 0.499 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004474/0.5119, allocations: 89.7 kB / 0.4991 GB, free: 131.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.5137, allocations: 0.9052 MB / 0.5 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004085/0.5141, allocations: 0.9879 MB / 0.5009 GB, free: 130.4 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5141, allocations: 3.25 kB / 0.5009 GB, free: 130.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat