Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.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/IDEAS 3.0.0/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") [: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.003959/0.003959, allocations: 182.9 kB / 7.455 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6603/0.6603, allocations: 130.6 MB / 138.5 MB, free: 2.195 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.61/1.61, allocations: 221.3 MB / 391.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 104.7 kB / 473.5 MB, free: 14.39 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 8.746e-06/8.766e-06, allocations: 2.094 kB / 0.5479 GB, free: 89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1711, allocations: 81.59 MB / 0.6276 GB, free: 18.19 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.21, allocations: 364.3 MB / 0.9833 GB, free: 191.3 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/1.21, allocations: 100 kB / 0.9834 GB, free: 191.3 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.762/2.972, allocations: 0.5019 GB / 1.485 GB, free: 93.91 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002775/2.973, allocations: 47.69 kB / 1.485 GB, free: 93.91 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004818/2.978, allocations: 1.655 MB / 1.487 GB, free: 93.3 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.934e-05/2.978, allocations: 6.906 kB / 1.487 GB, free: 93.3 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/2.988, allocations: 1.71 MB / 1.489 GB, free: 93.21 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006601/2.995, allocations: 1.995 MB / 1.491 GB, free: 92.89 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.736e-05/2.995, allocations: 31.41 kB / 1.491 GB, free: 92.89 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004472/2.995, allocations: 56.44 kB / 1.491 GB, free: 92.89 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002461/2.998, allocations: 0.863 MB / 1.492 GB, free: 92.89 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003018/3.001, allocations: 1.02 MB / 1.493 GB, free: 92.73 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.253e-05/3.001, allocations: 0 / 1.493 GB, free: 92.73 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/3.001, allocations: 0 / 1.493 GB, free: 92.73 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/3.001, allocations: 31.94 kB / 1.493 GB, free: 92.73 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01652/3.018, allocations: 6.389 MB / 1.499 GB, free: 90.29 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007393/3.018, allocations: 429.4 kB / 1.499 GB, free: 90.27 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004909/3.019, allocations: 302.3 kB / 1.499 GB, free: 90.26 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004456/3.023, allocations: 3.536 MB / 1.503 GB, free: 87.64 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/3.023, allocations: 37.66 kB / 1.503 GB, free: 87.6 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=43): time 2.525e-06/3.023, allocations: 0 / 1.503 GB, free: 87.6 MB / 0.6667 GB Notification: Performance of matching and sorting (n=43): time 0.002537/3.026, allocations: 0.7473 MB / 1.504 GB, free: 87.48 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/3.026, allocations: 59.12 kB / 1.504 GB, free: 87.42 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/3.028, allocations: 0.9349 MB / 1.505 GB, free: 87.27 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 9.408e-05/3.028, allocations: 28.86 kB / 1.505 GB, free: 87.24 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/3.028, allocations: 0.4988 MB / 1.505 GB, free: 87 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/3.028, allocations: 148.6 kB / 1.505 GB, free: 86.93 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/3.028, allocations: 0 / 1.505 GB, free: 86.93 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.99e-05/3.028, allocations: 339.3 kB / 1.506 GB, free: 86.62 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004647/3.029, allocations: 274 kB / 1.506 GB, free: 86.62 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/3.03, allocations: 0.6488 MB / 1.507 GB, free: 86.15 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/3.031, allocations: 468.8 kB / 1.507 GB, free: 86.14 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/3.031, allocations: 3.531 kB / 1.507 GB, free: 86.14 MB / 0.6667 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00287/3.034, allocations: 1.084 MB / 1.508 GB, free: 86.03 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009263/3.035, allocations: 4.472 MB / 1.512 GB, free: 81.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/3.035, allocations: 19.53 kB / 1.512 GB, free: 81.41 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002297/3.035, allocations: 57.08 kB / 1.513 GB, free: 81.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/3.038, allocations: 461.7 kB / 1.513 GB, free: 81.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004252/3.038, allocations: 0.5942 MB / 1.514 GB, free: 80.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002744/3.041, allocations: 382.8 kB / 1.514 GB, free: 80.86 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/3.041, allocations: 60.17 kB / 1.514 GB, free: 80.85 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.345e-06/3.041, allocations: 3.906 kB / 1.514 GB, free: 80.85 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002593/3.044, allocations: 0.9297 MB / 1.515 GB, free: 80.83 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.748e-05/3.044, allocations: 10.16 kB / 1.515 GB, free: 80.83 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001388/3.044, allocations: 47.06 kB / 1.515 GB, free: 80.82 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/3.046, allocations: 461.4 kB / 1.515 GB, free: 80.82 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000339/3.046, allocations: 0.6006 MB / 1.516 GB, free: 80.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/3.049, allocations: 349.8 kB / 1.516 GB, free: 80.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/3.049, allocations: 58.78 kB / 1.516 GB, free: 80.27 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 1 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003011/3.049, allocations: 137.9 kB / 1.516 GB, free: 80.16 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004089/3.05, allocations: 119.5 kB / 1.517 GB, free: 80.1 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/3.053, allocations: 1.143 MB / 1.518 GB, free: 80.02 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/3.053, allocations: 6.719 kB / 1.518 GB, free: 80.02 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/3.053, allocations: 3.062 kB / 1.518 GB, free: 80.02 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001739/3.055, allocations: 0.8737 MB / 1.519 GB, free: 79.75 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005113/3.06, allocations: 2.16 MB / 1.521 GB, free: 79.25 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/3.06, allocations: 3.938 kB / 1.521 GB, free: 79.25 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002055/3.062, allocations: 364.9 kB / 1.521 GB, free: 79.25 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/3.062, allocations: 40.11 kB / 1.521 GB, free: 79.25 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-05/3.062, allocations: 19.81 kB / 1.521 GB, free: 79.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004536/3.063, allocations: 0.5773 MB / 1.522 GB, free: 78.73 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.535e-06/3.063, allocations: 1.406 kB / 1.522 GB, free: 78.73 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003188/3.066, allocations: 1.431 MB / 1.523 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009645/3.067, allocations: 309 kB / 1.523 GB, free: 78.21 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005022/3.067, allocations: 5.688 kB / 1.523 GB, free: 78.21 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/3.07, allocations: 301.4 kB / 1.524 GB, free: 78.21 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/3.07, allocations: 40.59 kB / 1.524 GB, free: 78.21 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/3.07, allocations: 30.02 kB / 1.524 GB, free: 78.21 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.001527/3.072, allocations: 0.7015 MB / 1.524 GB, free: 78.1 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.003763/3.075, allocations: 0.8345 MB / 1.525 GB, free: 77.95 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (thermostatic3WayValve.k_state,thermostatic3WayValve.vol.dynBal.U,T_out.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002506/3.078, allocations: 1.006 MB / 1.526 GB, free: 77.72 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002449/3.08, allocations: 1.238 MB / 1.527 GB, free: 77.7 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/3.08, allocations: 3.812 kB / 1.527 GB, free: 77.7 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006022/3.081, allocations: 364.3 kB / 1.528 GB, free: 77.7 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/3.084, allocations: 0.5499 MB / 1.528 GB, free: 77.68 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004293/3.088, allocations: 1.805 MB / 1.53 GB, free: 77.18 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/3.089, allocations: 1.398 MB / 1.531 GB, free: 76.45 MB / 0.6667 GB Notification: Performance of SimCode: time 1.092e-06/3.089, allocations: 0 / 1.531 GB, free: 76.45 MB / 0.6667 GB Notification: Performance of Templates: time 0.05421/3.144, allocations: 34.55 MB / 1.565 GB, free: 74.78 MB / 0.6667 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)