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.001212/0.001212, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001261/0.001261, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.394/1.394, allocations: 230.4 MB / 254.7 MB, free: 15.23 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.001921/0.001921, allocations: 71.97 kB / 373.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.104, allocations: 53.31 MB / 426.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003183/0.1072, allocations: 1.852 MB / 428.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.1086, allocations: 0.7089 MB / 429.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.1088, allocations: 4 kB / 429.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.1089, allocations: 23.67 kB / 429.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.109, allocations: 35.66 kB / 429.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.1094, allocations: 91.77 kB / 429.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002765/0.1096, allocations: 175.5 kB / 429.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.1098, allocations: 54.66 kB / 429.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.11, allocations: 83.69 kB / 429.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.1102, allocations: 95.47 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.1102, allocations: 16 kB / 430 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.565e-05/0.1103, allocations: 31.92 kB / 430 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.655e-05/0.1103, allocations: 39.84 kB / 430.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.987e-05/0.1104, allocations: 91.45 kB / 430.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002914/0.1107, allocations: 199.1 kB / 430.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1107, allocations: 7.938 kB / 430.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1107, allocations: 4 kB / 430.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1107, allocations: 0 / 430.4 MB, free: 1.391 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.0009536/0.1117, allocations: 0.5101 MB / 430.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.1117, allocations: 12.03 kB / 430.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.619e-05/0.1118, allocations: 46.73 kB / 430.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.1119, allocations: 32.78 kB / 431 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.1122, allocations: 256.8 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.1123, allocations: 8.375 kB / 431.2 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.307e-05/0.1123, allocations: 24.34 kB / 431.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.1127, allocations: 213.4 kB / 431.5 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1127, allocations: 4 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.1127, allocations: 4 kB / 431.5 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.1127, allocations: 8 kB / 431.5 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003214/0.113, allocations: 139.8 kB / 431.6 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.1141, allocations: 0.7779 MB / 432.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006127/0.1148, allocations: 194.5 kB / 432.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.1149, allocations: 52.83 kB / 432.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.705e-05/0.1149, allocations: 4 kB / 432.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.1152, allocations: 145 kB / 432.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.1152, allocations: 4 kB / 432.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005846/0.1158, allocations: 241.4 kB / 433 MB, free: 14.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.1159, allocations: 81.11 kB / 433.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.1161, allocations: 223.1 kB / 433.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.1161, allocations: 29.7 kB / 433.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1162, allocations: 144.4 kB / 433.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.1163, allocations: 35.72 kB / 433.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-05/0.1164, allocations: 70.02 kB / 433.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1165, allocations: 330.8 kB / 433.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.1167, allocations: 71.89 kB / 434 MB, free: 13.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.1169, allocations: 136.5 kB / 434.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.1172, allocations: 208.4 kB / 434.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1172, allocations: 0 / 434.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004625/0.1177, allocations: 249.7 kB / 434.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1177, allocations: 14.19 kB / 434.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1177, allocations: 4.062 kB / 434.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1177, allocations: 4 kB / 434.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.1179, allocations: 35.98 kB / 434.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.736e-05/0.1179, allocations: 11.92 kB / 434.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.1181, allocations: 39.77 kB / 434.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.1181, allocations: 4 kB / 434.7 MB, free: 12.75 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.0001513/0.1183, allocations: 156 kB / 434.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.1183, allocations: 15.91 kB / 434.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002542/0.1186, allocations: 135 kB / 435 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1186, allocations: 0 / 435 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1186, allocations: 0 / 435 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1186, allocations: 7.938 kB / 435 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006484/0.1192, allocations: 482.2 kB / 435.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.1192, allocations: 7.984 kB / 435.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.1193, allocations: 15.98 kB / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1193, allocations: 4 kB / 435.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.1194, allocations: 3.938 kB / 435.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1194, allocations: 0 / 435.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1194, allocations: 0 / 435.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004217/0.1198, allocations: 296.1 kB / 435.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.1198, allocations: 92.95 kB / 435.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.1199, allocations: 7.938 kB / 435.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.12, allocations: 19.97 kB / 435.9 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/0.1201, allocations: 20.17 kB / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.1201, allocations: 7.984 kB / 435.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.1203, allocations: 148.6 kB / 436.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1203, allocations: 0 / 436.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.1206, allocations: 43.95 kB / 436.1 MB, free: 11.21 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.0008035/0.1214, allocations: 0.8332 MB / 436.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003977/0.1218, allocations: 167.7 kB / 437.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1218, allocations: 0 / 437.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.1219, allocations: 72.02 kB / 437.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.1223, allocations: 28.11 kB / 437.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.1251, allocations: 2.261 MB / 439.5 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.1255, allocations: 0.732 MB / 440.2 MB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.1256, allocations: 37.52 kB / 440.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.1257, allocations: 63.42 kB / 440.3 MB, free: 6.812 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1257, allocations: 0 / 440.3 MB, free: 6.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02735/0.1531, allocations: 4.165 MB / 444.5 MB, free: 2.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.797/7.95, allocations: 3.125 kB / 444.5 MB, free: 2.746 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 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.385356805752963] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.018640637863427 8.249456528 8.136338277 Calling exit ...