Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33: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/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007006/0.0007006, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000553/0.000553, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.3111/0.3111, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.01722/0.01722, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.477e-05/2.579e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.05893/0.05895, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.02057/0.07952, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001882/0.0814, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.002591/0.08399, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.005851/0.08985, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.005939/0.09579, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.004097/0.09988, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.1014, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.00418/0.1056, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.001958/0.1076, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.000312/0.1079, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.001818/0.1097, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0006796/0.1104, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0009835/0.1114, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.003267/0.1146, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0001851/0.1148, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 5.13e-06/0.1148, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 3.03e-05/0.1149, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.006082/0.1209, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001499/0.1211, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00098/0.1221, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.1236, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.003326/0.1269, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/0.1273, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004251/0.1277, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.004672/0.1324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 9.266e-05/0.1325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003359/0.1328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001512/0.133, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003256/0.1362, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01926/0.1555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.1581, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.1593, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.005334/0.1646, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.76e-05/0.1647, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=78): time 0.0002568/0.1649, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=83): time 0.01335/0.1783, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 9.775e-05/0.1784, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003259/0.1817, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0002285/0.1819, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.1829, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0005224/0.1834, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/0.1846, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003437/0.1849, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.1861, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.1881, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004211/0.1923, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.941e-05/0.1923, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=165) (initialization): time 0.006285/0.1986, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 8.594e-05/0.1987, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.227e-05/0.1987, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/0.2002, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.2018, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009712/0.2115, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.2132, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/0.2135, allocations: 0 / 0, free: 0 / 0 Warning: Assuming fixed start value for the following 3 variables: tank.level:VARIABLE(min = 0.0 start = tank.level_start_eps unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"Level height of tank\" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) \"Temperature of medium\" type: Real actuator.y:VARIABLE(flow=false min = 0.0 max = 1.0 start = actuator.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 20 (tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Valve.TS_in,PI_Level.TS_in,PI_Valve.satLOW_in,PI_Valve.satHIGH_in,PI_Valve.ATreq_in,sub.Yfp,sub.U2fp,sub.U1fp,div.Yfp,div.U2fp,div.U1fp,PI_Level.satLOW_in,PI_Level.satHIGH_in,PI_Level.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,7), (2,1), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001547/0.215, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008236/0.2158, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005832/0.2217, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.2217, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.2217, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.2217, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009228/0.231, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.889e-05/0.231, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.2321, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.2334, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001988/0.2336, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008085/0.2417, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.2417, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006405/0.2481, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001905/0.25, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006976/0.2507, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.2518, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007024/0.2525, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002778/0.2527, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.002099/0.2548, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 4.816e-05/0.2549, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004906/0.2598, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (PI_Level.Iaction,PI_Level.Fder,tank.level,tank.medium.T,actuator.y,PI_Valve.Iaction,PI_Valve.Fder) * Number of discrete variables: 6 (tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008111/0.2679, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.004939/0.2728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.273e-05/0.2728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.00238/0.2752, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005293/0.2805, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02816/0.3087, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008622/0.3095, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001804/0.3113, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002142/0.3135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.002757/0.3162, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.01121/0.3275, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.01728/0.3447, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.1317/0.4764, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 7.884e-05/0.4765, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 3.848e-05/0.4765, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.3 MB unzipped): time 0.0004969/0.477, allocations: 0 / 0, free: 0 / 0 Notification: FMU-only work: backend 0.006664, simCode 0.0162, templates 0.01119 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 660] simulate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,startTime=0,stopTime=4500,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=4500 -tolerance=1e-06 -stepSize=1.8 -noemit",resimulateExecutable="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu") [Timeout 240] "" [Timeout remaining time 240] simulate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,startTime=0,stopTime=4500,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=4500 -tolerance=1e-06 -stepSize=1.8 -noemit -s fmi3:me",resimulateExecutable="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu") [Timeout 240] "" [Timeout remaining time 240] simulate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,startTime=0,stopTime=4500,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=4500 -tolerance=1e-06 -stepSize=1.8 -noemit -s fmi3:cs",resimulateExecutable="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu") [Timeout 240] "" [Timeout remaining time 240] [Calling sys.exit(0), Time elapsed: 2.122651753947139]