Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_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.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_4_0_0_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_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",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.0009669/0.000967, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.101/1.101, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.000893/0.000893, allocations: 95.95 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09054/0.09147, allocations: 55.84 MB / 336.6 MB, free: 9.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.2777, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08554/0.3633, allocations: 88.12 MB / 475.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.3635, allocations: 87.94 kB / 475.2 MB, free: 14.54 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.03697/0.4005, allocations: 14.94 MB / 490.2 MB, free: 15.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.4006, allocations: 8 kB / 490.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.4008, allocations: 86.97 kB / 490.3 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008234/0.4016, allocations: 0.5017 MB / 490.8 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.4016, allocations: 20 kB / 490.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.278e-05/0.4017, allocations: 43.94 kB / 490.8 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008435/0.4026, allocations: 486.5 kB / 491.3 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009616/0.4036, allocations: 0.6223 MB / 491.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.4036, allocations: 3.906 kB / 491.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.231e-05/0.4036, allocations: 0 / 491.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/0.4037, allocations: 19.98 kB / 491.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003515/0.4072, allocations: 2.551 MB / 494.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007026/0.4079, allocations: 475.5 kB / 495 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.4083, allocations: 254.5 kB / 495.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.4083, allocations: 4.438 kB / 495.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004593/0.4088, allocations: 308.5 kB / 495.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 3.707e-06/0.4088, allocations: 0 / 495.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008404/0.4097, allocations: 496.7 kB / 496 MB, free: 9.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.4097, allocations: 137 kB / 496.1 MB, free: 9.309 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004122/0.4102, allocations: 369 kB / 496.5 MB, free: 8.949 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.12e-05/0.4102, allocations: 37.69 kB / 496.5 MB, free: 8.906 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.4104, allocations: 264.1 kB / 496.8 MB, free: 8.641 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.4105, allocations: 169.6 kB / 497 MB, free: 8.473 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.4105, allocations: 0 / 497 MB, free: 8.473 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4107, allocations: 358.8 kB / 497.3 MB, free: 8.113 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.4109, allocations: 185.2 kB / 497.5 MB, free: 7.934 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.4113, allocations: 340.2 kB / 497.8 MB, free: 7.535 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003027/0.4116, allocations: 193.4 kB / 498 MB, free: 7.348 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4116, allocations: 0 / 498 MB, free: 7.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009301/0.4126, allocations: 0.6021 MB / 498.6 MB, free: 6.734 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004452/0.413, allocations: 1.574 MB / 0.4885 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.4131, allocations: 4 kB / 0.4885 GB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004648/0.4135, allocations: 148.7 kB / 0.4886 GB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.4139, allocations: 95.83 kB / 0.4887 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/0.4163, allocations: 2.087 MB / 0.4907 GB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004693/0.4168, allocations: 83.64 kB / 0.4908 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/0.4168, allocations: 20 kB / 0.4908 GB, free: 2.496 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/0.4168, allocations: 4 kB / 0.4908 GB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008372/0.4177, allocations: 0.5189 MB / 0.4913 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4177, allocations: 4 kB / 0.4913 GB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003746/0.4181, allocations: 153.2 kB / 0.4915 GB, free: 1.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003138/0.4184, allocations: 87.83 kB / 0.4916 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1011/0.5195, allocations: 2.078 MB / 0.4936 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.5199, allocations: 68.77 kB / 0.4937 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.52, allocations: 25.03 kB / 0.4937 GB, free: 132.1 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_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,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001476/0.5201, allocations: 132 kB / 0.4938 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.77e-05/0.5202, allocations: 58.38 kB / 0.4939 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.5203, allocations: 57.09 kB / 0.4939 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.5204, allocations: 7.188 kB / 0.4939 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.5204, allocations: 7.531 kB / 0.4939 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.5204, allocations: 0 / 0.4939 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.5218, allocations: 1.232 MB / 0.4951 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5218, allocations: 0 / 0.4951 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.5221, allocations: 56.41 kB / 0.4952 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003425/0.5224, allocations: 135.1 kB / 0.4953 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.5225, allocations: 10.31 kB / 0.4953 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.5242, allocations: 2.04 MB / 0.4973 GB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5242, allocations: 1.594 kB / 0.4973 GB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009697/0.5252, allocations: 0.8493 MB / 0.4982 GB, free: 130.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00125/0.5265, allocations: 1.492 MB / 0.4996 GB, free: 129.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.5267, allocations: 187 kB / 0.4998 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.458e-05/0.5268, allocations: 3.625 kB / 0.4998 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003555/0.5271, allocations: 43.22 kB / 0.4998 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.5272, allocations: 39.44 kB / 0.4999 GB, free: 129.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.5273, allocations: 23.33 kB / 0.4999 GB, free: 129.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002387/0.5275, allocations: 277.5 kB / 0.5002 GB, free: 129.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001842/0.5294, allocations: 303.8 kB / 0.5005 GB, free: 129.6 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_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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.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.0001492/0.5295, allocations: 130.1 kB / 0.5006 GB, free: 129.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.5308, allocations: 1.057 MB / 0.5016 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5308, allocations: 0 / 0.5016 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004239/0.5313, allocations: 394.6 kB / 0.502 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.5317, allocations: 82.83 kB / 0.5021 GB, free: 129.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.5334, allocations: 0.9077 MB / 0.503 GB, free: 128.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003963/0.5338, allocations: 0.9947 MB / 0.5039 GB, free: 128.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5338, allocations: 0 / 0.5039 GB, free: 128.2 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat