Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",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 trunk/package.mo): time 0.001063/0.001063, allocations: 203.8 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.128/1.128, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008808/0.0008808, allocations: 96.81 kB / 286.3 MB, free: 5.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09051/0.09142, allocations: 56.92 MB / 343.3 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0795/0.1709, allocations: 51.47 MB / 394.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.3838, allocations: 88.07 MB / 482.8 MB, free: 5.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001838/0.384, allocations: 82.08 kB / 482.9 MB, free: 5.051 MB / 346.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.03342/0.4174, allocations: 14.08 MB / 497 MB, free: 9.281 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.4175, allocations: 8 kB / 497 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006159/0.4181, allocations: 170 kB / 497.1 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007678/0.4189, allocations: 0.5614 MB / 497.7 MB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.4189, allocations: 22.75 kB / 497.7 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-05/0.419, allocations: 44 kB / 497.8 MB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008198/0.4198, allocations: 473.6 kB / 498.2 MB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009772/0.4208, allocations: 0.628 MB / 498.8 MB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.4209, allocations: 13.31 kB / 498.9 MB, free: 7.773 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/0.4209, allocations: 0 / 498.9 MB, free: 7.773 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.4209, allocations: 19.98 kB / 498.9 MB, free: 7.754 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/0.4244, allocations: 2.604 MB / 0.4897 GB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.4248, allocations: 274.6 kB / 0.49 GB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.4252, allocations: 251.2 kB / 0.4902 GB, free: 5.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.4253, allocations: 12.22 kB / 0.4902 GB, free: 5.293 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004946/0.4258, allocations: 343.5 kB / 0.4906 GB, free: 5.039 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 1.713e-06/0.4258, allocations: 0 / 0.4906 GB, free: 5.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.0009348/0.4267, allocations: 0.5614 MB / 0.4911 GB, free: 4.621 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.4268, allocations: 114.8 kB / 0.4912 GB, free: 4.488 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004276/0.4272, allocations: 413.1 kB / 0.4916 GB, free: 4.172 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.4273, allocations: 29.7 kB / 0.4917 GB, free: 4.137 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.4274, allocations: 276 kB / 0.4919 GB, free: 3.895 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.4276, allocations: 204.5 kB / 0.4921 GB, free: 3.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.4276, allocations: 4.688 kB / 0.4921 GB, free: 3.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4278, allocations: 371 kB / 0.4925 GB, free: 3.371 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.4281, allocations: 188.3 kB / 0.4926 GB, free: 3.266 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003955/0.4285, allocations: 347 kB / 0.493 GB, free: 2.953 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.4289, allocations: 216.4 kB / 0.4932 GB, free: 2.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4289, allocations: 0 / 0.4932 GB, free: 2.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00106/0.4299, allocations: 0.6538 MB / 0.4938 GB, free: 2.328 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005369/0.4305, allocations: 1.832 MB / 0.4956 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4305, allocations: 7.984 kB / 0.4956 GB, free: 388 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004172/0.4309, allocations: 139.7 kB / 0.4958 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/0.4315, allocations: 135.2 kB / 0.4959 GB, free: 156 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.4338, allocations: 2.104 MB / 0.4979 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/0.4343, allocations: 75.66 kB / 0.498 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.468e-05/0.4343, allocations: 30.73 kB / 0.498 GB, free: 14.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.25e-06/0.4343, allocations: 4 kB / 0.498 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009164/0.4353, allocations: 0.5596 MB / 0.4986 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4353, allocations: 4.25 kB / 0.4986 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003473/0.4356, allocations: 138.2 kB / 0.4987 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.4361, allocations: 133.7 kB / 0.4989 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.4383, allocations: 2.112 MB / 0.5009 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.4388, allocations: 75.5 kB / 0.501 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.4388, allocations: 25.19 kB / 0.501 GB, free: 11.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.439, allocations: 133.5 kB / 0.5011 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.988e-05/0.4391, allocations: 67.16 kB / 0.5012 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.4401, allocations: 0.5883 MB / 0.5018 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.4401, allocations: 8 kB / 0.5018 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.4401, allocations: 0 / 0.5018 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.4401, allocations: 3.984 kB / 0.5018 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.4419, allocations: 1.332 MB / 0.5031 GB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4419, allocations: 0 / 0.5031 GB, free: 9.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004832/0.4424, allocations: 102.5 kB / 0.5032 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003466/0.4428, allocations: 136.8 kB / 0.5033 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.4428, allocations: 11.98 kB / 0.5033 GB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.445, allocations: 2.096 MB / 0.5054 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.445, allocations: 1.484 kB / 0.5054 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001365/0.4464, allocations: 0.9549 MB / 0.5063 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001863/0.4483, allocations: 1.635 MB / 0.5079 GB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.4485, allocations: 200.1 kB / 0.5081 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4486, allocations: 11.91 kB / 0.5081 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00046/0.4491, allocations: 51.89 kB / 0.5082 GB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.4492, allocations: 56.56 kB / 0.5082 GB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.021e-05/0.4493, allocations: 23.98 kB / 0.5082 GB, free: 4.074 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003012/0.4496, allocations: 311 kB / 0.5085 GB, free: 3.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002049/0.4517, allocations: 342.9 kB / 0.5089 GB, free: 3.438 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.000169/0.4518, allocations: 144.7 kB / 0.509 GB, free: 3.289 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.4535, allocations: 1.162 MB / 0.5101 GB, free: 2.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4535, allocations: 0 / 0.5101 GB, free: 2.105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005786/0.4541, allocations: 415.2 kB / 0.5105 GB, free: 1.695 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.4546, allocations: 100.6 kB / 0.5106 GB, free: 1.605 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.4567, allocations: 1.046 MB / 0.5116 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006278/0.4573, allocations: 1.022 MB / 0.5126 GB, free: 15.47 MB / 394.7 MB Notification: Performance of SimCode: time 1.723e-06/0.4573, allocations: 0 / 0.5126 GB, free: 15.47 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat