Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.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-master/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-master/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: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",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 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 180.6 kB / 7.461 MB, free: 448 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7002/0.7002, allocations: 133.5 MB / 141.4 MB, free: 3.73 MB / 110.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.774/1.774, allocations: 221.3 MB / 395 MB, free: 14.04 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009282/0.0009282, allocations: 101.9 kB / 477.8 MB, free: 3.949 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.5104/0.5114, allocations: 88.44 MB / 0.5529 GB, free: 90.8 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.7144, allocations: 82.29 MB / 0.6333 GB, free: 38.38 MB / 462.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6984/1.413, allocations: 360.7 MB / 0.9856 GB, free: 6.938 MB / 0.67 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003702/1.413, allocations: 92.03 kB / 0.9857 GB, free: 6.891 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 1.669/3.083, allocations: 437 MB / 1.412 GB, free: 152.1 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/3.083, allocations: 8.938 kB / 1.412 GB, free: 152.1 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006406/3.083, allocations: 152.8 kB / 1.413 GB, free: 152.1 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/3.086, allocations: 0.8628 MB / 1.413 GB, free: 151.3 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/3.086, allocations: 16 kB / 1.413 GB, free: 151.3 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/3.086, allocations: 83.8 kB / 1.414 GB, free: 151.2 MB / 0.6856 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007025/3.087, allocations: 402.4 kB / 1.414 GB, free: 150.8 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007333/3.087, allocations: 0.5151 MB / 1.414 GB, free: 150.2 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/3.087, allocations: 4 kB / 1.414 GB, free: 150.2 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/3.087, allocations: 0 / 1.414 GB, free: 150.2 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/3.087, allocations: 12 kB / 1.414 GB, free: 150.2 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00412/3.092, allocations: 2.94 MB / 1.417 GB, free: 147.2 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004814/3.092, allocations: 310.8 kB / 1.418 GB, free: 146.9 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/3.092, allocations: 133.4 kB / 1.418 GB, free: 146.8 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003185/3.093, allocations: 349.5 kB / 1.418 GB, free: 146.4 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/3.093, allocations: 42.69 kB / 1.418 GB, free: 146.3 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=33): time 2.084e-06/3.093, allocations: 0 / 1.418 GB, free: 146.3 MB / 0.6856 GB Notification: Performance of matching and sorting (n=33): time 0.001506/3.094, allocations: 499.5 kB / 1.419 GB, free: 145.9 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.331e-05/3.094, allocations: 58.75 kB / 1.419 GB, free: 145.8 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006959/3.095, allocations: 0.6398 MB / 1.419 GB, free: 145.1 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001362/3.095, allocations: 33.7 kB / 1.419 GB, free: 145.1 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003151/3.095, allocations: 411.9 kB / 1.42 GB, free: 144.7 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 7.602e-05/3.095, allocations: 110.4 kB / 1.42 GB, free: 144.6 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/3.096, allocations: 0 / 1.42 GB, free: 144.6 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.196e-05/3.096, allocations: 329.9 kB / 1.42 GB, free: 144.2 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/3.096, allocations: 156.8 kB / 1.42 GB, free: 144.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/3.097, allocations: 1.418 MB / 1.422 GB, free: 142.3 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009799/3.098, allocations: 391.3 kB / 1.422 GB, free: 142 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/3.098, allocations: 0 / 1.422 GB, free: 142 MB / 0.6856 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001566/3.1, allocations: 0.6592 MB / 1.423 GB, free: 141.3 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002262/3.1, allocations: 0.8102 MB / 1.423 GB, free: 140.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/3.1, allocations: 7.844 kB / 1.423 GB, free: 140.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/3.1, allocations: 7.875 kB / 1.423 GB, free: 140.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/3.101, allocations: 204.2 kB / 1.424 GB, free: 140.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/3.103, allocations: 2.992 MB / 1.427 GB, free: 137.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003629/3.106, allocations: 0.7682 MB / 1.427 GB, free: 136.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.819e-05/3.107, allocations: 26.89 kB / 1.427 GB, free: 136.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.739e-06/3.107, allocations: 4 kB / 1.427 GB, free: 136.4 MB / 0.6856 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001215/3.108, allocations: 0.4983 MB / 1.428 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/3.108, allocations: 7.375 kB / 1.428 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/3.108, allocations: 7.906 kB / 1.428 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007024/3.109, allocations: 155.8 kB / 1.428 GB, free: 135.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/3.109, allocations: 11.98 kB / 1.428 GB, free: 135.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003627/3.112, allocations: 0.7508 MB / 1.429 GB, free: 135.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.821e-05/3.112, allocations: 31.55 kB / 1.429 GB, free: 135 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003059/3.113, allocations: 129.8 kB / 1.429 GB, free: 134.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/3.113, allocations: 90.88 kB / 1.429 GB, free: 134.8 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/3.114, allocations: 0.567 MB / 1.43 GB, free: 134.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/3.114, allocations: 11.94 kB / 1.43 GB, free: 134.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/3.114, allocations: 0 / 1.43 GB, free: 134.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/3.114, allocations: 3.984 kB / 1.43 GB, free: 134.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/3.117, allocations: 1.24 MB / 1.431 GB, free: 132.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/3.117, allocations: 0 / 1.431 GB, free: 132.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/3.117, allocations: 122.8 kB / 1.431 GB, free: 132.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/3.117, allocations: 0 / 1.431 GB, free: 132.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/3.117, allocations: 15.92 kB / 1.431 GB, free: 132.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000958/3.118, allocations: 2.956 MB / 1.434 GB, free: 129.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/3.118, allocations: 12.64 kB / 1.434 GB, free: 129.8 MB / 0.6856 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001101/3.119, allocations: 0.6655 MB / 1.434 GB, free: 129 MB / 0.6856 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001293/3.121, allocations: 1.072 MB / 1.435 GB, free: 127.9 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004612/3.121, allocations: 215.8 kB / 1.436 GB, free: 127.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/3.121, allocations: 7.469 kB / 1.436 GB, free: 127.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006324/3.122, allocations: 66.83 kB / 1.436 GB, free: 127.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.068e-05/3.122, allocations: 31.41 kB / 1.436 GB, free: 127.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/3.122, allocations: 15.98 kB / 1.436 GB, free: 127.6 MB / 0.6856 GB Notification: Performance of sort global known variables: time 0.0005993/3.123, allocations: 488.6 kB / 1.436 GB, free: 127.1 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003952/3.127, allocations: 0.6943 MB / 1.437 GB, free: 126.4 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001136/3.128, allocations: 0.4967 MB / 1.437 GB, free: 126 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002738/3.131, allocations: 0.7914 MB / 1.438 GB, free: 125.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/3.131, allocations: 0 / 1.438 GB, free: 125.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005064/3.131, allocations: 223.2 kB / 1.438 GB, free: 125 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002105/3.133, allocations: 376.8 kB / 1.439 GB, free: 124.6 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/3.136, allocations: 1.08 MB / 1.44 GB, free: 123.5 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005939/3.136, allocations: 1.136 MB / 1.441 GB, free: 122.4 MB / 0.6856 GB Notification: Performance of SimCode: time 1.423e-06/3.136, allocations: 0 / 1.441 GB, free: 122.4 MB / 0.6856 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)