Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 179.7 kB / 8.474 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.069/1.069, allocations: 205.2 MB / 214.1 MB, free: 5.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008094/0.0008094, allocations: 90.23 kB / 262.1 MB, free: 5.207 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1461/0.1469, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0621/0.2091, allocations: 47.58 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.4219, allocations: 85.01 MB / 447.7 MB, free: 10.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.4221, allocations: 82.42 kB / 447.7 MB, free: 10.29 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.0333/0.4554, allocations: 13.37 MB / 461.1 MB, free: 4.906 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.4555, allocations: 9.75 kB / 461.1 MB, free: 4.906 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.4558, allocations: 96.22 kB / 461.2 MB, free: 4.859 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.4569, allocations: 0.528 MB / 461.7 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.803e-05/0.457, allocations: 22.12 kB / 461.8 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.4572, allocations: 54.61 kB / 461.8 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00106/0.4582, allocations: 467.1 kB / 462.3 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.4594, allocations: 0.6257 MB / 462.9 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/0.4594, allocations: 1.344 kB / 462.9 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.907e-05/0.4595, allocations: 1.25 kB / 462.9 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.4595, allocations: 16.81 kB / 462.9 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003912/0.4634, allocations: 2.574 MB / 465.5 MB, free: 2.809 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004621/0.4639, allocations: 271.7 kB / 465.8 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004036/0.4643, allocations: 253.3 kB / 466 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.78e-05/0.4644, allocations: 10.45 kB / 466 MB, free: 2.758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000554/0.465, allocations: 353.8 kB / 466.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 4.459e-06/0.465, allocations: 0 / 466.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001068/0.4661, allocations: 0.555 MB / 466.9 MB, free: 2.496 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.4661, allocations: 116 kB / 467 MB, free: 2.371 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/0.4667, allocations: 389 kB / 467.4 MB, free: 2.227 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.968e-05/0.4668, allocations: 29.64 kB / 467.4 MB, free: 2.195 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.4669, allocations: 273.3 kB / 467.7 MB, free: 1.988 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.4671, allocations: 204.1 kB / 467.9 MB, free: 1.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.4671, allocations: 1.188 kB / 467.9 MB, free: 1.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.613e-05/0.4672, allocations: 373.1 kB / 468.3 MB, free: 1.508 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.4676, allocations: 175.2 kB / 468.4 MB, free: 1.504 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.468, allocations: 356.1 kB / 468.8 MB, free: 1.297 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.4683, allocations: 214.1 kB / 469 MB, free: 1.254 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.964e-06/0.4684, allocations: 1.406 kB / 469 MB, free: 1.254 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001097/0.4695, allocations: 0.6468 MB / 469.6 MB, free: 1.109 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000433/0.4699, allocations: 1.833 MB / 471.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4699, allocations: 9.156 kB / 471.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004695/0.4704, allocations: 133.3 kB / 471.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006019/0.471, allocations: 137.4 kB / 471.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/0.4735, allocations: 2.111 MB / 473.9 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006554/0.4741, allocations: 78.5 kB / 473.9 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.908e-05/0.4742, allocations: 24.03 kB / 474 MB, free: 13.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/0.4742, allocations: 3.969 kB / 474 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001055/0.4753, allocations: 0.5527 MB / 474.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.4753, allocations: 4.406 kB / 474.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.4757, allocations: 148.2 kB / 474.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005326/0.4763, allocations: 124.4 kB / 474.8 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00241/0.4787, allocations: 2.113 MB / 476.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006099/0.4793, allocations: 70.31 kB / 477 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.868e-05/0.4794, allocations: 29.7 kB / 477 MB, free: 12.02 MB / 330.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,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$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.0002496/0.4797, allocations: 138.2 kB / 477.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.4799, allocations: 71.31 kB / 477.2 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.481, allocations: 0.5811 MB / 477.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.4811, allocations: 6.875 kB / 477.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4811, allocations: 5.031 kB / 477.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.4811, allocations: 3.984 kB / 477.8 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.4832, allocations: 1.319 MB / 479.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.4832, allocations: 0 / 479.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005252/0.4837, allocations: 103.3 kB / 479.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003759/0.4841, allocations: 129.9 kB / 479.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.95e-05/0.4842, allocations: 7.188 kB / 479.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002385/0.4866, allocations: 2.1 MB / 481.5 MB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4866, allocations: 3.938 kB / 481.5 MB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001515/0.4881, allocations: 0.959 MB / 482.4 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001918/0.4901, allocations: 1.619 MB / 484 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.4904, allocations: 202.6 kB / 484.2 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.4906, allocations: 7.859 kB / 484.2 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005331/0.4911, allocations: 51.95 kB / 484.3 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.4913, allocations: 64.12 kB / 484.4 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.343e-05/0.4914, allocations: 19.73 kB / 484.4 MB, free: 6.734 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003683/0.4917, allocations: 299.6 kB / 484.7 MB, free: 6.516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002379/0.4941, allocations: 322.8 kB / 485 MB, free: 6.199 MB / 330.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,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * 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.0002785/0.4944, allocations: 137.7 kB / 485.1 MB, free: 6.059 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.4966, allocations: 1.154 MB / 486.3 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4966, allocations: 0 / 486.3 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006977/0.4973, allocations: 429.1 kB / 486.7 MB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.498, allocations: 84.64 kB / 486.8 MB, free: 4.773 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.5006, allocations: 1.035 MB / 487.8 MB, free: 3.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006901/0.5013, allocations: 1.016 MB / 488.8 MB, free: 2.781 MB / 330.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5014, allocations: 4 kB / 488.8 MB, free: 2.777 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat