Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001827/0.001827, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.469/1.469, allocations: 230.5 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 75.81 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1057, allocations: 53.32 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003431/0.1092, allocations: 1.861 MB / 428.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1106, allocations: 0.6972 MB / 429.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.1108, allocations: 7.938 kB / 429.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1109, allocations: 27.66 kB / 429.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.1111, allocations: 31.73 kB / 429.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.1114, allocations: 95.77 kB / 429.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.1117, allocations: 183.4 kB / 429.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.1119, allocations: 46.67 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.112, allocations: 87.69 kB / 430 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.1122, allocations: 91.48 kB / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.1122, allocations: 12 kB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.1123, allocations: 31.98 kB / 430.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.201e-05/0.1124, allocations: 51.83 kB / 430.2 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.272e-05/0.1125, allocations: 83.47 kB / 430.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.1128, allocations: 203 kB / 430.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1128, allocations: 3.938 kB / 430.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1128, allocations: 0 / 430.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1128, allocations: 0 / 430.5 MB, free: 1.285 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001/0.1138, allocations: 0.514 MB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1138, allocations: 8.031 kB / 431 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.249e-05/0.1139, allocations: 50.73 kB / 431.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.1141, allocations: 32.78 kB / 431.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.1144, allocations: 252.8 kB / 431.3 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.1144, allocations: 16.31 kB / 431.4 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.1144, allocations: 20.38 kB / 431.4 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.1149, allocations: 205.4 kB / 431.6 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1149, allocations: 4 kB / 431.6 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.1149, allocations: 4 kB / 431.6 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.56e-05/0.1149, allocations: 12 kB / 431.6 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.1153, allocations: 135.8 kB / 431.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.1164, allocations: 0.7857 MB / 432.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.1171, allocations: 190.5 kB / 432.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.1173, allocations: 52.83 kB / 432.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.1173, allocations: 4 kB / 432.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000298/0.1176, allocations: 151.1 kB / 432.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.1176, allocations: 0 / 432.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006395/0.1182, allocations: 245.3 kB / 433.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.1183, allocations: 81.11 kB / 433.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.1185, allocations: 223.1 kB / 433.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.1186, allocations: 33.7 kB / 433.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.1187, allocations: 140.8 kB / 433.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.1187, allocations: 39.72 kB / 433.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.623e-05/0.1188, allocations: 65.64 kB / 433.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.119, allocations: 330.8 kB / 434 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.1192, allocations: 67.89 kB / 434.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.1194, allocations: 136.5 kB / 434.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.1198, allocations: 216.6 kB / 434.5 MB, free: 13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.1198, allocations: 4 kB / 434.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004992/0.1203, allocations: 245.2 kB / 434.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1203, allocations: 8 kB / 434.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1203, allocations: 3.984 kB / 434.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1203, allocations: 4 kB / 434.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.1205, allocations: 39.92 kB / 434.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1205, allocations: 7.984 kB / 434.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1207, allocations: 40.02 kB / 434.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.1207, allocations: 8 kB / 434.8 MB, free: 12.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.1209, allocations: 144 kB / 434.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.433e-05/0.1209, allocations: 19.91 kB / 435 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.1212, allocations: 131 kB / 435.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1212, allocations: 4 kB / 435.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1212, allocations: 4 kB / 435.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.1212, allocations: 3.938 kB / 435.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.1219, allocations: 482.2 kB / 435.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.1219, allocations: 0 / 435.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.122, allocations: 23.92 kB / 435.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.122, allocations: 0 / 435.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.122, allocations: 11.94 kB / 435.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.122, allocations: 0 / 435.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.122, allocations: 0 / 435.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004396/0.1225, allocations: 284.2 kB / 435.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.386e-05/0.1225, allocations: 101 kB / 436 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.1226, allocations: 4.125 kB / 436 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.1227, allocations: 19.97 kB / 436 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.188e-05/0.1228, allocations: 27.86 kB / 436 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.1228, allocations: 16.05 kB / 436.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001351/0.123, allocations: 144.7 kB / 436.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.123, allocations: 0 / 436.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.1233, allocations: 39.95 kB / 436.2 MB, free: 11.1 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008202/0.1241, allocations: 0.8365 MB / 437.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004786/0.1246, allocations: 163.7 kB / 437.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1246, allocations: 0 / 437.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001995/0.1248, allocations: 76.39 kB / 437.3 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.1251, allocations: 30.75 kB / 437.3 MB, free: 9.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.1281, allocations: 2.249 MB / 439.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.1285, allocations: 0.7359 MB / 440.3 MB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.1286, allocations: 37.5 kB / 440.4 MB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.1288, allocations: 67.41 kB / 440.4 MB, free: 6.711 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1288, allocations: 0 / 440.4 MB, free: 6.711 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.1575, allocations: 4.151 MB / 444.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.313, allocations: 4 kB / 444.6 MB, free: 2.652 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00197941 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.940671130549163] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.385941118001938 8.609953151 8.494557927 Calling exit ...