Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.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.0006337/0.0006337, 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.0004885/0.0004885, 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.3146/0.3146, 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.01831/0.01831, 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.LevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.LevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.032e-06/1.032e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/2.907e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.05278/0.05281, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.02002/0.07283, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.00221/0.07503, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.002505/0.07754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.006665/0.08421, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.006357/0.09056, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.005368/0.09593, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001912/0.09784, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.004098/0.1019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.001893/0.1038, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0002899/0.1041, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.002391/0.1065, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0006299/0.1071, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0009318/0.1081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.003631/0.1117, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0002032/0.1119, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 6.241e-06/0.1119, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 2.733e-05/0.1119, 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.006343/0.1183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001395/0.1184, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009098/0.1193, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001504/0.1208, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.003006/0.1238, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004355/0.1243, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003881/0.1247, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.004517/0.1292, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 8.041e-05/0.1293, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/0.1296, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.1297, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003051/0.1328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.1497, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002295/0.152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.153, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.005836/0.1589, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001896/0.1608, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=71): time 0.0002026/0.161, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=76): time 0.01287/0.1738, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.174, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/0.1769, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0002398/0.1772, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0009052/0.1781, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0005041/0.1786, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/0.1797, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0002918/0.18, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.1812, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.003889/0.1869, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-05/0.187, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=152) (initialization): time 0.006567/0.1935, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 9.009e-05/0.1936, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.662e-05/0.1937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.1952, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.1966, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00787/0.2045, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.2062, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003071/0.2065, allocations: 0 / 0, free: 0 / 0 Warning: Assuming fixed start value for the following 8 variables: PI_Level.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real PI_Level.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real sub.Yfp:DISCRETE(fixed = true ) \"floating point converted output\" type: Integer 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 PI_Level.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real div.Yfp:DISCRETE(fixed = true ) \"floating point converted output\" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 27 (PI_Level.FBout,$PRE.PI_Level.FBout,$PRE.PI_Level.cs,PI_Level.cs,$PRE.PI_Level.satin,PI_Level.satin,$whenCondition1,$PRE.sub.Yfp,sub.Yfp,div.U1fp,$PRE.PI_Level.CS,sub.U1fp,tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Level.CS,PI_Level.TS_in,$PRE.div.Yfp,div.U2fp,div.Yfp,sub.U2fp,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 (139): * Single equations (assignments): 136 * 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.001574/0.2081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007235/0.2088, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005838/0.2147, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.699e-05/0.2147, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.2147, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-05/0.2147, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009696/0.2244, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.233e-05/0.2245, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008532/0.2253, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.2267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/0.2269, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009645/0.2366, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.2366, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006364/0.243, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.001897/0.2449, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007033/0.2456, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.2467, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006703/0.2473, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002543/0.2476, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.001845/0.2494, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 4.38e-05/0.2495, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004884/0.2544, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (tank.level,tank.medium.T,actuator.y) * Number of discrete variables: 15 ($whenCondition1,PI_Level.CS,PI_Level.FBout,PI_Level.cs,PI_Level.satin,tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3],div.U1fp,div.Yfp,sub.U1fp,sub.Yfp) * Number of discrete states: 2 (PI_Level.FBout,PI_Level.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 6 * 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.008094/0.2625, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.004586/0.267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.691e-05/0.2671, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.002264/0.2693, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005198/0.2745, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02514/0.2997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007694/0.3004, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001777/0.3022, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/0.304, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.001818/0.3058, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.009637/0.3155, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.008133/0.3236, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.1088/0.4324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 2.661e-05/0.4324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 3.033e-05/0.4325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.2 MB unzipped): time 0.0004633/0.4329, allocations: 0 / 0, free: 0 / 0 Notification: FMU-only work: backend 0.006533, simCode 0.01343, templates 0.009611 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 660] simulate(IndustrialControlSystems.Applications.ProcessControl.LevelControl,startTime=0,stopTime=4500,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl",simflags=" -alarm=240 -lv LOG_STATS -startTime=0 -stopTime=4500 -tolerance=1e-06 -stepSize=1.8 -noemit",resimulateExecutable="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl.fmu") [Timeout 240] "" [Timeout remaining time 199] simulate(IndustrialControlSystems.Applications.ProcessControl.LevelControl,startTime=0,stopTime=4500,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl",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_LevelControl.fmu") [Timeout 240] "" [Timeout remaining time 171] simulate(IndustrialControlSystems.Applications.ProcessControl.LevelControl,startTime=0,stopTime=4500,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl",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_LevelControl.fmu") [Timeout 240] "" [Timeout remaining time 201] [Calling sys.exit(0), Time elapsed: 149.94991561211646]