Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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(ThermoPower.Test.WaterComponents.ValveZeroFlow,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow",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.0009427/0.0009427, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9916/0.9916, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008141/0.0008142, allocations: 99.25 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2728/0.2728, allocations: 48.76 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08852/0.3613, allocations: 66.37 MB / 424.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.4459, allocations: 60.25 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.777/4.223, allocations: 2.865 GB / 3.338 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001848/4.223, allocations: 81.17 kB / 3.338 GB, free: 152.3 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.6406/4.864, allocations: 264.6 MB / 3.597 GB, free: 81.16 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/4.864, allocations: 11.33 kB / 3.597 GB, free: 81.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003169/4.864, allocations: 76.83 kB / 3.597 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/4.865, allocations: 396.7 kB / 3.597 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/4.865, allocations: 8.562 kB / 3.597 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/4.865, allocations: 17.94 kB / 3.597 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003436/4.865, allocations: 205.6 kB / 3.598 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003664/4.866, allocations: 322.6 kB / 3.598 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/4.866, allocations: 0 / 3.598 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/4.866, allocations: 3.969 kB / 3.598 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/4.866, allocations: 6.188 kB / 3.598 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0578/4.924, allocations: 33.8 MB / 3.631 GB, free: 59.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/4.924, allocations: 93.14 kB / 3.631 GB, free: 59.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.553e-05/4.924, allocations: 55.11 kB / 3.631 GB, free: 59.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0548/4.979, allocations: 32.01 MB / 3.662 GB, free: 38.49 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/4.979, allocations: 39.22 kB / 3.662 GB, free: 38.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=13): time 3.456e-06/4.979, allocations: 3.219 kB / 3.662 GB, free: 38.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13): time 0.001091/4.98, allocations: 263.1 kB / 3.663 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.089e-05/4.98, allocations: 58.16 kB / 3.663 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003366/4.98, allocations: 268.9 kB / 3.663 GB, free: 38.12 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/4.98, allocations: 25.7 kB / 3.663 GB, free: 38.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.216e-05/4.981, allocations: 189.8 kB / 3.663 GB, free: 37.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/4.981, allocations: 45.36 kB / 3.663 GB, free: 37.91 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/4.981, allocations: 4 kB / 3.663 GB, free: 37.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.663e-05/4.981, allocations: 349 kB / 3.663 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/4.981, allocations: 49.25 kB / 3.663 GB, free: 37.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/4.981, allocations: 91.08 kB / 3.664 GB, free: 37.49 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/4.981, allocations: 85.02 kB / 3.664 GB, free: 37.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/4.981, allocations: 0 / 3.664 GB, free: 37.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001033/4.982, allocations: 349 kB / 3.664 GB, free: 37.33 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.277e-05/4.982, allocations: 453.7 kB / 3.664 GB, free: 36.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/4.982, allocations: 0 / 3.664 GB, free: 36.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000527/4.983, allocations: 87.67 kB / 3.664 GB, free: 36.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/4.983, allocations: 61.41 kB / 3.665 GB, free: 36.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/4.984, allocations: 0.7173 MB / 3.665 GB, free: 36.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003719/4.985, allocations: 28.64 kB / 3.665 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/4.985, allocations: 15.06 kB / 3.665 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.992e-06/4.985, allocations: 3.969 kB / 3.665 GB, free: 36.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008061/4.986, allocations: 200.5 kB / 3.665 GB, free: 36.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-06/4.986, allocations: 0 / 3.665 GB, free: 36.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/4.986, allocations: 76.52 kB / 3.666 GB, free: 36.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/4.986, allocations: 66.28 kB / 3.666 GB, free: 36.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/4.988, allocations: 1.597 MB / 3.667 GB, free: 34.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/4.988, allocations: 28.3 kB / 3.667 GB, free: 34.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/4.988, allocations: 9.5 kB / 3.667 GB, free: 34.71 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/4.988, allocations: 109 kB / 3.667 GB, free: 34.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/4.988, allocations: 101.5 kB / 3.667 GB, free: 34.56 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/4.989, allocations: 0.9248 MB / 3.668 GB, free: 34.15 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/4.989, allocations: 6.031 kB / 3.668 GB, free: 34.15 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-06/4.989, allocations: 3.906 kB / 3.668 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/4.989, allocations: 6.344 kB / 3.668 GB, free: 34.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003875/4.99, allocations: 446.6 kB / 3.669 GB, free: 33.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/4.99, allocations: 0 / 3.669 GB, free: 33.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.197e-05/4.99, allocations: 24.92 kB / 3.669 GB, free: 33.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008702/4.991, allocations: 0.7987 MB / 3.67 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/4.991, allocations: 0 / 3.67 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008078/4.992, allocations: 1.111 MB / 3.671 GB, free: 32.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/4.992, allocations: 0 / 3.671 GB, free: 32.98 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008235/4.992, allocations: 0.7578 MB / 3.671 GB, free: 32.59 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009533/4.993, allocations: 1.172 MB / 3.673 GB, free: 31.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/4.993, allocations: 121.4 kB / 3.673 GB, free: 31.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/4.993, allocations: 3.969 kB / 3.673 GB, free: 31.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/4.994, allocations: 18.16 kB / 3.673 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/4.994, allocations: 14.28 kB / 3.673 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/4.994, allocations: 10.03 kB / 3.673 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001409/4.994, allocations: 214.7 kB / 3.673 GB, free: 31.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00484/4.999, allocations: 1.155 MB / 3.674 GB, free: 31.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.005838/5.005, allocations: 1.445 MB / 3.675 GB, free: 30.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001115/5.006, allocations: 0.5271 MB / 3.676 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/5.006, allocations: 0 / 3.676 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003414/5.006, allocations: 291.2 kB / 3.676 GB, free: 30.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008521/5.007, allocations: 133.1 kB / 3.676 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009146/5.008, allocations: 0.6246 MB / 3.677 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/5.008, allocations: 0.8776 MB / 3.678 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of SimCode: time 7.51e-07/5.008, allocations: 0 / 3.678 GB, free: 29.34 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow.fmu > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow.pipe 2>&1)