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_RLV_Characteristic.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_RLV_Characteristic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_Characteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_Characteristic",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.001021/0.001021, allocations: 182.2 kB / 8.137 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.112/1.112, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009491/0.0009491, allocations: 97.36 kB / 280.8 MB, free: 1.32 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09167/0.09265, allocations: 55.83 MB / 336.6 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.2712, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0892/0.3604, allocations: 89.18 MB / 476.2 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.3607, allocations: 83.94 kB / 476.3 MB, free: 13.51 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.04083/0.4015, allocations: 15.9 MB / 492.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.4016, allocations: 8 kB / 492.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002064/0.4018, allocations: 102.9 kB / 492.3 MB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008666/0.4027, allocations: 0.5102 MB / 492.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.741e-05/0.4027, allocations: 27.94 kB / 492.8 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.599e-05/0.4028, allocations: 44 kB / 492.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009354/0.4038, allocations: 0.5037 MB / 493.4 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.4048, allocations: 0.6545 MB / 494 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.4049, allocations: 11.83 kB / 494 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.669e-05/0.405, allocations: 0 / 494 MB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.405, allocations: 20 kB / 494.1 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003771/0.4088, allocations: 2.627 MB / 496.7 MB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.4098, allocations: 0.593 MB / 497.3 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006895/0.4105, allocations: 410.2 kB / 497.7 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.4106, allocations: 4.5 kB / 497.7 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004928/0.4111, allocations: 353.8 kB / 498 MB, free: 7.488 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.114e-06/0.4111, allocations: 0 / 498 MB, free: 7.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.001056/0.4122, allocations: 0.5595 MB / 498.6 MB, free: 6.918 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.4122, allocations: 141.2 kB / 498.7 MB, free: 6.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/0.4127, allocations: 361 kB / 499.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.837e-05/0.4127, allocations: 37.7 kB / 499.1 MB, free: 6.348 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.4129, allocations: 272.2 kB / 499.4 MB, free: 6.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.413, allocations: 193.2 kB / 499.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.4131, allocations: 0 / 499.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4132, allocations: 366.8 kB / 499.9 MB, free: 5.516 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000317/0.4136, allocations: 189.5 kB / 0.4884 GB, free: 5.328 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.414, allocations: 349.5 kB / 0.4887 GB, free: 4.918 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003609/0.4143, allocations: 211.1 kB / 0.4889 GB, free: 4.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.4143, allocations: 8 kB / 0.4889 GB, free: 4.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00102/0.4154, allocations: 0.6495 MB / 0.4896 GB, free: 4.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004655/0.4159, allocations: 1.571 MB / 0.4911 GB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.4159, allocations: 4 kB / 0.4911 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004674/0.4163, allocations: 161.6 kB / 0.4913 GB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/0.4168, allocations: 111.8 kB / 0.4914 GB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0996/0.5164, allocations: 3.292 MB / 0.4946 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.517, allocations: 75.86 kB / 0.4947 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/0.517, allocations: 24.16 kB / 0.4947 GB, free: 131.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.5171, allocations: 8.719 kB / 0.4947 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008239/0.5179, allocations: 0.5517 MB / 0.4952 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.5179, allocations: 6.594 kB / 0.4952 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004259/0.5183, allocations: 160.9 kB / 0.4954 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003767/0.5187, allocations: 112.7 kB / 0.4955 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.521, allocations: 3.3 MB / 0.4987 GB, free: 129 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.5214, allocations: 64.42 kB / 0.4988 GB, free: 129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.5215, allocations: 22.31 kB / 0.4988 GB, free: 129 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 (69): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.5216, allocations: 137.9 kB / 0.4989 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.5217, allocations: 61.44 kB / 0.499 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.5219, allocations: 66.02 kB / 0.499 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.5219, allocations: 3.438 kB / 0.4991 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.5219, allocations: 3.375 kB / 0.4991 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.5219, allocations: 3.609 kB / 0.4991 GB, free: 128.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.5236, allocations: 1.337 MB / 0.5004 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5236, allocations: 0 / 0.5004 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.524, allocations: 81.34 kB / 0.5004 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000355/0.5244, allocations: 150.2 kB / 0.5006 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.277e-05/0.5244, allocations: 3.438 kB / 0.5006 GB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.5267, allocations: 3.269 MB / 0.5038 GB, free: 126.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5267, allocations: 11.27 kB / 0.5038 GB, free: 126.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001106/0.5278, allocations: 0.9384 MB / 0.5047 GB, free: 125.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001525/0.5293, allocations: 1.619 MB / 0.5063 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.5295, allocations: 189.2 kB / 0.5065 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.596e-05/0.5297, allocations: 5.844 kB / 0.5065 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004083/0.5301, allocations: 53.95 kB / 0.5065 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.5302, allocations: 48.97 kB / 0.5066 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.5302, allocations: 23.61 kB / 0.5066 GB, free: 125.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002348/0.5305, allocations: 267 kB / 0.5069 GB, free: 125.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002175/0.5327, allocations: 332.1 kB / 0.5072 GB, free: 125.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * 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_n2.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001794/0.5328, allocations: 133.4 kB / 0.5073 GB, free: 125 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.5344, allocations: 1.292 MB / 0.5086 GB, free: 124.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5344, allocations: 0 / 0.5086 GB, free: 124.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005034/0.5349, allocations: 0.4971 MB / 0.509 GB, free: 124.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.5354, allocations: 84.92 kB / 0.5091 GB, free: 124.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.5374, allocations: 1.062 MB / 0.5102 GB, free: 124.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/0.5379, allocations: 1.011 MB / 0.5111 GB, free: 123.4 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5379, allocations: 0 / 0.5111 GB, free: 123.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_Characteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV_Characteristic.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_Characteristic.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_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat