Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.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_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_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 trunk/package.mo): time 0.001075/0.001075, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008807/0.0008807, allocations: 89.16 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09281/0.09372, allocations: 56.91 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.1764, allocations: 51.47 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2204/0.3969, allocations: 87.75 MB / 482.5 MB, free: 5.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.3972, allocations: 85.77 kB / 482.6 MB, free: 5.375 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.03327/0.4304, allocations: 13.72 MB / 496.3 MB, free: 9.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.4305, allocations: 8 kB / 496.3 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006184/0.4311, allocations: 174 kB / 496.5 MB, free: 9.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007935/0.4319, allocations: 0.5384 MB / 497 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.432, allocations: 27.98 kB / 497 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.432, allocations: 44 kB / 497.1 MB, free: 9.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008119/0.4329, allocations: 461.6 kB / 497.5 MB, free: 8.906 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009592/0.4338, allocations: 0.613 MB / 498.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.4339, allocations: 0 / 498.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.527e-05/0.4339, allocations: 4 kB / 498.1 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.434, allocations: 20 kB / 498.2 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003396/0.4374, allocations: 2.528 MB / 0.4889 GB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006418/0.438, allocations: 452.5 kB / 0.4894 GB, free: 6.066 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.4384, allocations: 245.1 kB / 0.4896 GB, free: 5.922 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.546e-05/0.4384, allocations: 8.5 kB / 0.4896 GB, free: 5.914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004972/0.4389, allocations: 343.5 kB / 0.49 GB, free: 5.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.134e-06/0.4389, allocations: 0 / 0.49 GB, free: 5.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.0009437/0.4399, allocations: 0.5537 MB / 0.4905 GB, free: 5.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.44, allocations: 115.5 kB / 0.4906 GB, free: 5.113 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.4404, allocations: 404.7 kB / 0.491 GB, free: 4.809 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.4404, allocations: 31.95 kB / 0.491 GB, free: 4.773 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.4406, allocations: 269.6 kB / 0.4913 GB, free: 4.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.4408, allocations: 198.3 kB / 0.4915 GB, free: 4.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.4408, allocations: 0 / 0.4915 GB, free: 4.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4409, allocations: 374.3 kB / 0.4918 GB, free: 4.016 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.4413, allocations: 185.8 kB / 0.492 GB, free: 3.914 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/0.4417, allocations: 347.5 kB / 0.4923 GB, free: 3.598 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.442, allocations: 206.6 kB / 0.4925 GB, free: 3.473 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.442, allocations: 0 / 0.4925 GB, free: 3.473 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001024/0.443, allocations: 0.6414 MB / 0.4932 GB, free: 2.988 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005536/0.4436, allocations: 1.827 MB / 0.4949 GB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.4436, allocations: 4 kB / 0.4949 GB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004552/0.4441, allocations: 153.8 kB / 0.4951 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/0.4446, allocations: 134.7 kB / 0.4952 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.4468, allocations: 2.046 MB / 0.4972 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004901/0.4473, allocations: 75.62 kB / 0.4973 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/0.4474, allocations: 30.67 kB / 0.4973 GB, free: 14.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.1e-06/0.4474, allocations: 4 kB / 0.4973 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008809/0.4483, allocations: 0.5408 MB / 0.4978 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.4483, allocations: 11.94 kB / 0.4979 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003632/0.4487, allocations: 155 kB / 0.498 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.4491, allocations: 115 kB / 0.4981 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.4513, allocations: 2.049 MB / 0.5001 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.4518, allocations: 71.66 kB / 0.5002 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.4518, allocations: 27.73 kB / 0.5002 GB, free: 12.36 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 (70): * Single equations (assignments): 68 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.452, allocations: 139.3 kB / 0.5003 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.384e-05/0.4521, allocations: 71.14 kB / 0.5004 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.4531, allocations: 0.5807 MB / 0.501 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.4532, allocations: 8 kB / 0.501 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.4532, allocations: 3.906 kB / 0.501 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.4532, allocations: 3.984 kB / 0.501 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.455, allocations: 1.313 MB / 0.5023 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.455, allocations: 4 kB / 0.5023 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.4554, allocations: 87.88 kB / 0.5024 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003622/0.4558, allocations: 140.1 kB / 0.5025 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-05/0.4559, allocations: 11.98 kB / 0.5025 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.458, allocations: 2.049 MB / 0.5045 GB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.458, allocations: 0 / 0.5045 GB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0013/0.4593, allocations: 0.9549 MB / 0.5054 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001784/0.4611, allocations: 1.608 MB / 0.507 GB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.4613, allocations: 202.7 kB / 0.5072 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.4615, allocations: 8 kB / 0.5072 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004599/0.4619, allocations: 55.89 kB / 0.5073 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.4621, allocations: 60.47 kB / 0.5073 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.4621, allocations: 23.98 kB / 0.5073 GB, free: 4.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000316/0.4624, allocations: 306.9 kB / 0.5076 GB, free: 4.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002107/0.4646, allocations: 330.9 kB / 0.508 GB, free: 4.309 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * 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 (50): * Single equations (assignments): 41 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001888/0.4648, allocations: 140.8 kB / 0.5081 GB, free: 4.168 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.4665, allocations: 1.158 MB / 0.5092 GB, free: 2.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.4666, allocations: 0 / 0.5092 GB, free: 2.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000628/0.4672, allocations: 427.8 kB / 0.5096 GB, free: 2.551 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.4677, allocations: 89.16 kB / 0.5097 GB, free: 2.465 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.4698, allocations: 0.9916 MB / 0.5107 GB, free: 1.445 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006162/0.4705, allocations: 1.022 MB / 0.5117 GB, free: 400 kB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4705, allocations: 0 / 0.5117 GB, free: 400 kB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat