Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000934/0.0009341, allocations: 180.8 kB / 8.128 MB, free: 2.223 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.092/1.092, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009072/0.0009072, allocations: 96.05 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08527/0.08621, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.2577, allocations: 50.41 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0795/0.3372, allocations: 86.07 MB / 473.1 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.3375, allocations: 89.73 kB / 473.2 MB, free: 0.5938 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.03525/0.3728, allocations: 13.64 MB / 486.8 MB, free: 2.863 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.3728, allocations: 12 kB / 486.8 MB, free: 2.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.373, allocations: 98.78 kB / 486.9 MB, free: 2.754 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008018/0.3738, allocations: 0.5279 MB / 487.5 MB, free: 2.188 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.3738, allocations: 39.89 kB / 487.5 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-05/0.3739, allocations: 47.94 kB / 487.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008669/0.3748, allocations: 471.9 kB / 488 MB, free: 1.641 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.3758, allocations: 0.6263 MB / 488.6 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.3759, allocations: 3.938 kB / 488.6 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.376, allocations: 3.984 kB / 488.6 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.376, allocations: 24 kB / 488.7 MB, free: 0.957 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/0.3796, allocations: 2.597 MB / 491.3 MB, free: 14.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/0.3801, allocations: 263 kB / 491.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003745/0.3805, allocations: 254.9 kB / 491.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.3805, allocations: 8.594 kB / 491.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005156/0.381, allocations: 358 kB / 492.1 MB, free: 13.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 1.944e-06/0.3811, allocations: 0 / 492.1 MB, free: 13.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.0009559/0.382, allocations: 0.5431 MB / 492.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.3821, allocations: 119.5 kB / 492.8 MB, free: 12.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004043/0.3825, allocations: 389.2 kB / 493.2 MB, free: 12.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/0.3826, allocations: 33.7 kB / 493.2 MB, free: 12.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.3827, allocations: 276.3 kB / 493.5 MB, free: 11.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.3829, allocations: 205.1 kB / 493.7 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.3829, allocations: 0 / 493.7 MB, free: 11.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.383, allocations: 366.8 kB / 494 MB, free: 11.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003143/0.3834, allocations: 185.5 kB / 494.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.3838, allocations: 358.3 kB / 494.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.3841, allocations: 205.4 kB / 494.8 MB, free: 10.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3842, allocations: 4 kB / 494.8 MB, free: 10.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001054/0.3852, allocations: 0.6487 MB / 495.4 MB, free: 9.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005439/0.3858, allocations: 1.831 MB / 497.2 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3858, allocations: 4 kB / 497.2 MB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004531/0.3862, allocations: 140.8 kB / 497.4 MB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005693/0.3868, allocations: 135.7 kB / 497.5 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.3892, allocations: 2.121 MB / 499.6 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.3897, allocations: 75.66 kB / 499.7 MB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-05/0.3898, allocations: 27.98 kB / 499.7 MB, free: 5.348 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.062e-06/0.3898, allocations: 4 kB / 499.7 MB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009188/0.3907, allocations: 0.5463 MB / 0.4886 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3907, allocations: 4 kB / 0.4886 GB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003545/0.3911, allocations: 144.7 kB / 0.4887 GB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/0.3916, allocations: 128.3 kB / 0.4888 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.3937, allocations: 2.106 MB / 0.4909 GB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.3942, allocations: 71.66 kB / 0.491 GB, free: 2.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.3943, allocations: 31.98 kB / 0.491 GB, free: 2.199 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.0001795/0.3944, allocations: 144.6 kB / 0.4911 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-05/0.3945, allocations: 63.25 kB / 0.4912 GB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.3956, allocations: 0.5813 MB / 0.4918 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3956, allocations: 15.84 kB / 0.4918 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3956, allocations: 0 / 0.4918 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3956, allocations: 7.984 kB / 0.4918 GB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.3974, allocations: 1.305 MB / 0.493 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3974, allocations: 4 kB / 0.4931 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1054/0.5028, allocations: 104.1 kB / 0.4932 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004033/0.5033, allocations: 125.3 kB / 0.4933 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/0.5033, allocations: 11.08 kB / 0.4933 GB, free: 132.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/0.5052, allocations: 2.109 MB / 0.4953 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.5053, allocations: 0 / 0.4953 GB, free: 131.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001284/0.5066, allocations: 0.9565 MB / 0.4963 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001563/0.5081, allocations: 1.623 MB / 0.4979 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.5083, allocations: 202.5 kB / 0.4981 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.947e-05/0.5085, allocations: 7.281 kB / 0.4981 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004597/0.5089, allocations: 56.67 kB / 0.4981 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.5091, allocations: 52.38 kB / 0.4982 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/0.5091, allocations: 28.92 kB / 0.4982 GB, free: 130.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002762/0.5094, allocations: 287.1 kB / 0.4985 GB, free: 130.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002041/0.5114, allocations: 335.6 kB / 0.4988 GB, free: 130.7 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.0001898/0.5116, allocations: 129.8 kB / 0.4989 GB, free: 130.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.5133, allocations: 1.156 MB / 0.5 GB, free: 130.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5133, allocations: 0 / 0.5 GB, free: 130.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005456/0.5138, allocations: 423.2 kB / 0.5004 GB, free: 130.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.5143, allocations: 88.38 kB / 0.5005 GB, free: 130.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.5164, allocations: 1.037 MB / 0.5015 GB, free: 130 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005458/0.5169, allocations: 1.018 MB / 0.5025 GB, free: 129.3 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.517, allocations: 3.594 kB / 0.5025 GB, free: 129.3 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat