Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo", uses=false) Using package ThermalSeparation with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermalSeparation.Examples.Testing.Pump.PumpSystem,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermalSeparation.Examples.Testing.Pump.PumpSystem,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem",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.0008239/0.000824, allocations: 187.8 kB / 7.801 MB, free: 2.477 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9741/0.9741, allocations: 221.4 MB / 229.6 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007937/0.0007937, allocations: 94.31 kB / 280.5 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.3413/0.3413, allocations: 64.47 MB / 395.7 MB, free: 27.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09721/0.4385, allocations: 70.98 MB / 466.7 MB, free: 6.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.6533, allocations: 64.85 MB / 0.5191 GB, free: 30.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3516/1.005, allocations: 250.4 MB / 0.7636 GB, free: 35.22 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000144/1.005, allocations: 61.16 kB / 0.7637 GB, free: 35.2 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.1176/1.123, allocations: 61.69 MB / 0.8239 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/1.123, allocations: 12 kB / 0.8239 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/1.123, allocations: 193.7 kB / 0.8241 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/1.124, allocations: 0.7625 MB / 0.8249 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.755e-05/1.124, allocations: 64 kB / 0.8249 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006411/1.125, allocations: 183.9 kB / 0.8251 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003037/1.128, allocations: 1.957 MB / 0.827 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003192/1.131, allocations: 2.376 MB / 0.8293 GB, free: 9.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.969e-05/1.131, allocations: 7.938 kB / 0.8293 GB, free: 9.473 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/1.132, allocations: 4 kB / 0.8293 GB, free: 9.469 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/1.132, allocations: 135.5 kB / 0.8295 GB, free: 9.336 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009773/1.141, allocations: 9.994 MB / 0.8392 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/1.142, allocations: 0.7445 MB / 0.84 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007152/1.143, allocations: 0.5431 MB / 0.8405 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-05/1.143, allocations: 25 kB / 0.8405 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/1.143, allocations: 51.55 kB / 0.8406 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=114): time 2.165e-06/1.143, allocations: 0 / 0.8406 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=136): time 0.01721/1.16, allocations: 6.534 MB / 0.8469 GB, free: 6.883 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/1.161, allocations: 201.2 kB / 0.8471 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008759/1.161, allocations: 0.7497 MB / 0.8479 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.745e-05/1.162, allocations: 25.7 kB / 0.8479 GB, free: 5.859 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/1.162, allocations: 0.9194 MB / 0.8488 GB, free: 4.922 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/1.162, allocations: 473.2 kB / 0.8492 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/1.162, allocations: 0 / 0.8492 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001637/1.163, allocations: 423.4 kB / 0.8496 GB, free: 4.031 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/1.164, allocations: 0.8519 MB / 0.8505 GB, free: 3.176 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/1.165, allocations: 1.788 MB / 0.8522 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/1.167, allocations: 1.193 MB / 0.8534 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/1.167, allocations: 11.98 kB / 0.8534 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=298) (initialization): time 0.007774/1.175, allocations: 3.343 MB / 0.8567 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/1.175, allocations: 8 kB / 0.8567 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.723e-05/1.175, allocations: 32 kB / 0.8567 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004417/1.179, allocations: 0.9492 MB / 0.8576 GB, free: 11.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/1.182, allocations: 0.5343 MB / 0.8582 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008912/1.191, allocations: 5.664 MB / 0.8637 GB, free: 5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/1.193, allocations: 151.7 kB / 0.8638 GB, free: 4.852 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002064/1.193, allocations: 120 kB / 0.8639 GB, free: 4.734 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 5 (tank.mediumLiquidIn.state.phase,tank.mediumLiquid.state.phase,sourceLiquid.medium.state.phase,idealPumpControlledVdot.mediumLiquidIn.state.phase,idealPumpControlledVdot.mediumLiquid.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(9,53.1%) 11} * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002891/1.193, allocations: 192 kB / 0.8641 GB, free: 4.539 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002649/1.194, allocations: 114.6 kB / 0.8642 GB, free: 4.426 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007279/1.201, allocations: 2.73 MB / 0.8669 GB, free: 1.676 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006545/1.207, allocations: 2.38 MB / 0.8692 GB, free: 15.27 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/1.207, allocations: 4 kB / 0.8692 GB, free: 15.27 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/1.207, allocations: 11.97 kB / 0.8692 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/1.218, allocations: 5.316 MB / 0.8744 GB, free: 9.812 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/1.218, allocations: 4.062 kB / 0.8744 GB, free: 9.809 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/1.22, allocations: 251.6 kB / 0.8747 GB, free: 9.562 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005582/1.226, allocations: 1.243 MB / 0.8759 GB, free: 8.309 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/1.226, allocations: 23.97 kB / 0.8759 GB, free: 8.285 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008985/1.235, allocations: 6.085 MB / 0.8819 GB, free: 2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1335/1.368, allocations: 4.805 MB / 0.8865 GB, free: 185.1 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007562/1.376, allocations: 4.486 MB / 0.8909 GB, free: 184 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008629/1.385, allocations: 5.908 MB / 0.8967 GB, free: 182.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/1.385, allocations: 193 kB / 0.8969 GB, free: 182.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/1.385, allocations: 15.16 kB / 0.8969 GB, free: 182.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/1.386, allocations: 102.8 kB / 0.897 GB, free: 182.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/1.387, allocations: 97.62 kB / 0.8971 GB, free: 182.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/1.387, allocations: 45.94 kB / 0.8971 GB, free: 182.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0004836/1.387, allocations: 0.5138 MB / 0.8976 GB, free: 182.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002834/1.39, allocations: 0.5325 MB / 0.8982 GB, free: 182.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET140450816493975.x[3],$STATESET140450816493975.x[2],$STATESET140450816493975.x[1],tank.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 112 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(7,61.2%) 11} * Non-linear torn systems: 3 {1 3,6 7,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002605/1.39, allocations: 199.4 kB / 0.8983 GB, free: 182.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004149/1.394, allocations: 2.45 MB / 0.9007 GB, free: 182.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.394, allocations: 0 / 0.9007 GB, free: 182.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002858/1.397, allocations: 1.268 MB / 0.902 GB, free: 182 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/1.398, allocations: 209.8 kB / 0.9022 GB, free: 182 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004935/1.403, allocations: 3.087 MB / 0.9052 GB, free: 181.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/1.405, allocations: 1.597 MB / 0.9067 GB, free: 180.3 MB / 0.5573 GB Notification: Performance of SimCode: time 2.91e-07/1.405, allocations: 0 / 0.9067 GB, free: 180.3 MB / 0.5573 GB (rm -f ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe ; mkfifo ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe ; head -c 1048576 < ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe >> ../files/ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 ThermalSeparation_ThermalSeparation_Examples_Testing_Pump_PumpSystem.fmu > ThermalSeparation_ThermalSeparation.Examples.Testing.Pump.PumpSystem.pipe 2>&1)