Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",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.001006/0.001006, allocations: 183.4 kB / 8.482 MB, free: 1.789 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.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008696/0.0008696, allocations: 86.78 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08946/0.09036, allocations: 52.99 MB / 315.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.2779, allocations: 47.55 MB / 362.6 MB, free: 45.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0829/0.3609, allocations: 79.6 MB / 442.2 MB, free: 6.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/0.3611, allocations: 74.02 kB / 442.3 MB, free: 6.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.01849/0.3796, allocations: 6.928 MB / 449.2 MB, free: 15.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3797, allocations: 8 kB / 449.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.3798, allocations: 55.44 kB / 449.3 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.3802, allocations: 289.4 kB / 449.6 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.3803, allocations: 12 kB / 449.6 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.03e-05/0.3803, allocations: 20 kB / 449.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006124/0.381, allocations: 337.5 kB / 449.9 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.3816, allocations: 367.8 kB / 450.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.3816, allocations: 0 / 450.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.3817, allocations: 4 kB / 450.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.3817, allocations: 12 kB / 450.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002453/0.3841, allocations: 1.509 MB / 451.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.3845, allocations: 230.6 kB / 452 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.3848, allocations: 177.9 kB / 452.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.3848, allocations: 12.3 kB / 452.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3849, allocations: 42.88 kB / 452.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 2.024e-06/0.3849, allocations: 0 / 452.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.001316/0.3862, allocations: 497 kB / 452.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.3863, allocations: 162.2 kB / 452.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.3865, allocations: 209.1 kB / 453.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3865, allocations: 29.7 kB / 453.1 MB, free: 11.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.3866, allocations: 176.3 kB / 453.3 MB, free: 11.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.897e-05/0.3867, allocations: 138.6 kB / 453.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-05/0.3867, allocations: 0 / 453.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3868, allocations: 338.8 kB / 453.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.387, allocations: 116.9 kB / 453.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/0.3873, allocations: 205.8 kB / 454.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/0.3876, allocations: 135.9 kB / 454.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3876, allocations: 3.938 kB / 454.2 MB, free: 10.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001624/0.3892, allocations: 0.6369 MB / 454.9 MB, free: 9.418 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3893, allocations: 8 kB / 454.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3893, allocations: 0 / 454.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009053/0.3902, allocations: 257.5 kB / 455.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003972/0.3906, allocations: 91.88 kB / 455.2 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.3918, allocations: 1.349 MB / 456.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005272/0.3923, allocations: 95.66 kB / 456.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/0.3924, allocations: 17.12 kB / 456.7 MB, free: 7.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.3925, allocations: 108.9 kB / 456.8 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.543e-05/0.3926, allocations: 31.62 kB / 456.8 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.3942, allocations: 0.6059 MB / 457.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.3943, allocations: 7.906 kB / 457.4 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3943, allocations: 0 / 457.4 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3943, allocations: 7.984 kB / 457.4 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005084/0.3948, allocations: 401.6 kB / 457.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3948, allocations: 0 / 457.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.3952, allocations: 75.83 kB / 457.9 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008624/0.396, allocations: 261.5 kB / 458.2 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.3961, allocations: 4 kB / 458.2 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.3972, allocations: 1.361 MB / 459.5 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.3972, allocations: 7.906 kB / 459.5 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001865/0.3991, allocations: 0.844 MB / 460.4 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002149/0.4012, allocations: 1.411 MB / 461.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.111e-05/0.4013, allocations: 117.1 kB / 461.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.139e-05/0.4014, allocations: 4 kB / 461.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004233/0.4018, allocations: 56.02 kB / 462 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.4019, allocations: 27.95 kB / 462 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.402, allocations: 8 kB / 462 MB, free: 2.055 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000148/0.4021, allocations: 161.2 kB / 462.2 MB, free: 1.895 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009562/0.4031, allocations: 100.8 kB / 462.2 MB, free: 1.797 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001937/0.4033, allocations: 107.2 kB / 462.4 MB, free: 1.684 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006981/0.404, allocations: 351.9 kB / 462.7 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.404, allocations: 0 / 462.7 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.4043, allocations: 192.2 kB / 462.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.4046, allocations: 26.09 kB / 462.9 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.4059, allocations: 0.5815 MB / 463.5 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004818/0.4064, allocations: 0.8341 MB / 464.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4064, allocations: 3.938 kB / 464.3 MB, free: 15.67 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat