Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",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.001526/0.001526, 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.135/1.135, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008427/0.0008427, allocations: 95 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09065/0.09152, allocations: 56.9 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08183/0.1734, allocations: 51.47 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.3836, allocations: 79.63 MB / 474.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001621/0.3838, allocations: 69.86 kB / 474.4 MB, free: 12.43 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.01033/0.3941, allocations: 4.342 MB / 478.7 MB, free: 9.836 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.3942, allocations: 8 kB / 478.7 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.3943, allocations: 35.7 kB / 478.8 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.3946, allocations: 232.8 kB / 479 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.3946, allocations: 8 kB / 479 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.3946, allocations: 12 kB / 479 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002481/0.3949, allocations: 129.1 kB / 479.2 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.3951, allocations: 151.6 kB / 479.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3951, allocations: 7.469 kB / 479.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.3952, allocations: 0 / 479.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3952, allocations: 4 kB / 479.3 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.3962, allocations: 0.812 MB / 480.1 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.3964, allocations: 92.67 kB / 480.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.3965, allocations: 85.98 kB / 480.3 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.3966, allocations: 0 / 480.3 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.3966, allocations: 45.58 kB / 480.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.122e-06/0.3966, allocations: 3.391 kB / 480.4 MB, free: 8.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005566/0.3972, allocations: 202 kB / 480.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.3972, allocations: 55.41 kB / 480.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.991e-05/0.3973, allocations: 147.5 kB / 480.7 MB, free: 8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.3973, allocations: 25.7 kB / 480.8 MB, free: 7.969 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/0.3974, allocations: 138.9 kB / 480.9 MB, free: 7.832 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.3974, allocations: 58.05 kB / 481 MB, free: 7.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/0.3974, allocations: 0 / 481 MB, free: 7.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.99e-05/0.3975, allocations: 330.6 kB / 481.3 MB, free: 7.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.794e-05/0.3975, allocations: 40.56 kB / 481.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.567e-05/0.3976, allocations: 63.72 kB / 481.4 MB, free: 7.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.3978, allocations: 66.06 kB / 481.5 MB, free: 7.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3978, allocations: 0 / 481.5 MB, free: 7.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004055/0.3982, allocations: 212.3 kB / 481.7 MB, free: 7.172 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.3982, allocations: 4 kB / 481.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3983, allocations: 0 / 481.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005306/0.3988, allocations: 95.52 kB / 481.8 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.3989, allocations: 39.83 kB / 481.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000456/0.3994, allocations: 0.634 MB / 482.4 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.3995, allocations: 15.84 kB / 482.4 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.3996, allocations: 11.62 kB / 482.5 MB, free: 6.402 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 5.821e-05/0.3996, allocations: 104.9 kB / 482.6 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.12e-05/0.3997, allocations: 19.8 kB / 482.6 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000411/0.4001, allocations: 210.2 kB / 482.8 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4001, allocations: 2.438 kB / 482.8 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.4001, allocations: 0 / 482.8 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.4001, allocations: 11.98 kB / 482.8 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000702/0.4008, allocations: 0.5357 MB / 483.3 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4009, allocations: 0 / 483.3 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.401, allocations: 31.81 kB / 483.4 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004374/0.4015, allocations: 107.8 kB / 483.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.4015, allocations: 0 / 483.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003961/0.4019, allocations: 0.6528 MB / 484.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4019, allocations: 0 / 484.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005002/0.4024, allocations: 391 kB / 484.5 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006176/0.403, allocations: 0.8178 MB / 485.3 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.4031, allocations: 92.86 kB / 485.4 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.4031, allocations: 0 / 485.4 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.4033, allocations: 16.45 kB / 485.4 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.4033, allocations: 10.14 kB / 485.4 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.4033, allocations: 7.812 kB / 485.4 MB, free: 3.629 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.96e-05/0.4034, allocations: 118.8 kB / 485.6 MB, free: 3.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008362/0.4042, allocations: 63.89 kB / 485.6 MB, free: 3.465 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001314/0.4044, allocations: 107.2 kB / 485.7 MB, free: 3.348 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.4047, allocations: 132.1 kB / 485.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4047, allocations: 0 / 485.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.4048, allocations: 74.45 kB / 485.9 MB, free: 3.203 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.405, allocations: 24.66 kB / 486 MB, free: 3.188 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006487/0.4057, allocations: 376.5 kB / 486.3 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.4059, allocations: 0.7548 MB / 487.1 MB, free: 2.047 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4059, allocations: 0 / 487.1 MB, free: 2.047 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat