Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.0009249/0.0009249, allocations: 176 kB / 8.474 MB, free: 1.852 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.082/1.082, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0009158/0.0009158, allocations: 95.25 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1628/0.1637, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07046/0.2342, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2401/0.4743, allocations: 76.62 MB / 439.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001613/0.4745, allocations: 66.88 kB / 439.3 MB, free: 10.73 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.01239/0.4869, allocations: 5.231 MB / 444.5 MB, free: 9.914 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.4869, allocations: 9.766 kB / 444.6 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.724e-05/0.487, allocations: 39.83 kB / 444.6 MB, free: 9.895 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.4873, allocations: 268.5 kB / 444.9 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.4873, allocations: 7.688 kB / 444.9 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.197e-05/0.4874, allocations: 20.23 kB / 444.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002873/0.4877, allocations: 164.7 kB / 445 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.488, allocations: 198.1 kB / 445.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.488, allocations: 3.875 kB / 445.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.488, allocations: 4 kB / 445.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.488, allocations: 4.594 kB / 445.3 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.4895, allocations: 0.937 MB / 446.2 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.4897, allocations: 163.3 kB / 446.3 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.4899, allocations: 110.6 kB / 446.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.4899, allocations: 192 / 446.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.316e-05/0.4899, allocations: 35.27 kB / 446.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.4899, allocations: 3.938 kB / 446.5 MB, free: 9.113 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004227/0.4904, allocations: 216.8 kB / 446.7 MB, free: 9.051 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.827e-05/0.4904, allocations: 63.84 kB / 446.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.4906, allocations: 197.4 kB / 447 MB, free: 8.883 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.4906, allocations: 30.09 kB / 447 MB, free: 8.852 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.748e-05/0.4906, allocations: 168.1 kB / 447.2 MB, free: 8.723 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.4907, allocations: 66.62 kB / 447.2 MB, free: 8.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.4907, allocations: 0 / 447.2 MB, free: 8.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.195e-05/0.4908, allocations: 338.3 kB / 447.6 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.176e-05/0.4908, allocations: 52.23 kB / 447.6 MB, free: 8.363 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.341e-05/0.4909, allocations: 85.59 kB / 447.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.916e-05/0.491, allocations: 59.41 kB / 447.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4911, allocations: 0 / 447.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003813/0.4914, allocations: 264.7 kB / 448 MB, free: 8.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.4915, allocations: 7.906 kB / 448 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.4915, allocations: 0 / 448 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.4917, allocations: 74.16 kB / 448.1 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/0.4919, allocations: 45.69 kB / 448.1 MB, free: 8.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.4935, allocations: 2.684 MB / 450.8 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.4937, allocations: 26.17 kB / 450.8 MB, free: 5.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.4937, allocations: 4.656 kB / 450.8 MB, free: 5.801 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.671e-05/0.4938, allocations: 121.2 kB / 451 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.993e-05/0.4938, allocations: 24.11 kB / 451 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.844e-05/0.4939, allocations: 27.25 kB / 451 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4939, allocations: 3.875 kB / 451 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.4939, allocations: 0 / 451 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.4939, allocations: 5.156 kB / 451 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006786/0.4946, allocations: 0.5729 MB / 451.6 MB, free: 5.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.4946, allocations: 3.938 kB / 451.6 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.4947, allocations: 33.08 kB / 451.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001759/0.4949, allocations: 78.36 kB / 451.7 MB, free: 5.348 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.4949, allocations: 0 / 451.7 MB, free: 5.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.4968, allocations: 2.683 MB / 454.4 MB, free: 18.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4968, allocations: 0 / 454.4 MB, free: 18.87 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000361/0.4971, allocations: 327.9 kB / 454.7 MB, free: 18.68 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004532/0.4976, allocations: 0.6949 MB / 455.4 MB, free: 18.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.4977, allocations: 96.55 kB / 455.5 MB, free: 18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.4977, allocations: 3.719 kB / 455.5 MB, free: 18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.498, allocations: 34.88 kB / 455.5 MB, free: 17.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.498, allocations: 23.45 kB / 455.6 MB, free: 17.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4981, allocations: 7.797 kB / 455.6 MB, free: 17.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001215/0.4982, allocations: 160.2 kB / 455.7 MB, free: 17.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009144/0.4991, allocations: 84.06 kB / 455.8 MB, free: 17.88 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001464/0.4993, allocations: 104 kB / 455.9 MB, free: 17.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004912/0.4998, allocations: 361.5 kB / 456.3 MB, free: 17.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4998, allocations: 4 kB / 456.3 MB, free: 17.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.5001, allocations: 296.2 kB / 456.6 MB, free: 17.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.5004, allocations: 34.33 kB / 456.6 MB, free: 17.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006635/0.501, allocations: 318.8 kB / 456.9 MB, free: 17.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/0.5015, allocations: 0.7872 MB / 457.7 MB, free: 16.42 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5015, allocations: 0 / 457.7 MB, free: 16.42 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat