Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2020,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2020,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock") [: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.1+maint.om/package.mo): time 0.00573/0.00573, allocations: 176.3 kB / 7.452 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.525/1.525, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001659/0.001659, allocations: 111.8 kB / 217.7 MB, free: 8.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.324e-06, allocations: 4 kB / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07214/0.07216, allocations: 38.76 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2103/0.2825, allocations: 65.24 MB / 365.7 MB, free: 3.281 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000146/0.2827, allocations: 66.34 kB / 365.8 MB, free: 3.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.002879/0.2856, allocations: 0.9282 MB / 366.7 MB, free: 2.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.2856, allocations: 0 / 366.7 MB, free: 2.48 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003671/0.286, allocations: 374.5 kB / 367.1 MB, free: 2.074 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.286, allocations: 12.03 kB / 367.1 MB, free: 2.062 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.286, allocations: 7.906 kB / 367.1 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.515e-05/0.2861, allocations: 173 kB / 367.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.2862, allocations: 6.516 kB / 367.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.2862, allocations: 4 kB / 367.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.718e-05/0.2863, allocations: 24.94 kB / 367.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.784e-05/0.2864, allocations: 56.3 kB / 367.4 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.2864, allocations: 3.938 kB / 367.4 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.2864, allocations: 0 / 367.4 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2864, allocations: 7.984 kB / 367.4 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003255/0.2867, allocations: 277.7 kB / 367.7 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.862e-05/0.2869, allocations: 37 kB / 367.7 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.916e-05/0.2869, allocations: 23.77 kB / 367.7 MB, free: 1.414 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.2869, allocations: 4 kB / 367.7 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.287, allocations: 38.5 kB / 367.8 MB, free: 1.363 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.287, allocations: 0 / 367.8 MB, free: 1.363 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001686/0.2871, allocations: 59.06 kB / 367.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.2872, allocations: 51.41 kB / 367.9 MB, free: 1.246 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.848e-05/0.2872, allocations: 96.19 kB / 368 MB, free: 1.148 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.2872, allocations: 25.7 kB / 368 MB, free: 1.117 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.707e-05/0.2873, allocations: 98.66 kB / 368.1 MB, free: 1.02 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.2873, allocations: 3.906 kB / 368.1 MB, free: 1.016 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.2873, allocations: 0 / 368.1 MB, free: 1.016 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.18e-05/0.2874, allocations: 329.4 kB / 368.4 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.409e-05/0.2874, allocations: 7 kB / 368.4 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.054e-05/0.2874, allocations: 11.19 kB / 368.4 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.526e-05/0.2875, allocations: 11.97 kB / 368.4 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2875, allocations: 3.938 kB / 368.4 MB, free: 0.668 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.065e-05/0.2876, allocations: 53.06 kB / 368.5 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.2876, allocations: 8 kB / 368.5 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2876, allocations: 0 / 368.5 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.2876, allocations: 3.906 kB / 368.5 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.2878, allocations: 31.91 kB / 368.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.2878, allocations: 0.625 kB / 368.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.848e-05/0.2879, allocations: 27.73 kB / 368.6 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2879, allocations: 0 / 368.6 MB, free: 0.5508 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.772e-05/0.288, allocations: 101 kB / 368.7 MB, free: 456 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.288, allocations: 7.906 kB / 368.7 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.2882, allocations: 75.73 kB / 368.7 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2882, allocations: 0 / 368.7 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2882, allocations: 4 kB / 368.7 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2882, allocations: 4 kB / 368.7 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.2883, allocations: 160.5 kB / 368.9 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2883, allocations: 0 / 368.9 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.2884, allocations: 27.97 kB / 368.9 MB, free: 152 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2884, allocations: 8 kB / 368.9 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.2885, allocations: 0 / 368.9 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2885, allocations: 0 / 368.9 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2885, allocations: 0 / 368.9 MB, free: 144 kB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000123/0.2886, allocations: 161.6 kB / 369.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.907e-05/0.2887, allocations: 85.14 kB / 369.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.2887, allocations: 0 / 369.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.2888, allocations: 23.98 kB / 369.2 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.2889, allocations: 7.969 kB / 369.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.2889, allocations: 4 kB / 369.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.016e-05/0.2889, allocations: 87.27 kB / 369.3 MB, free: 15.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.2892, allocations: 19.84 kB / 369.3 MB, free: 15.74 MB / 266.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 (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00014/0.2893, allocations: 103.2 kB / 369.4 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.897e-05/0.2894, allocations: 30.56 kB / 369.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2894, allocations: 0 / 369.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.411e-05/0.2895, allocations: 27.38 kB / 369.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.2897, allocations: 3.906 kB / 369.5 MB, free: 15.58 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002843/0.2899, allocations: 102.2 kB / 369.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.2903, allocations: 0.711 MB / 370.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2903, allocations: 0 / 370.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of Templates: time 0.002642/0.2929, allocations: 0.7341 MB / 371 MB, free: 14 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1)