Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 107.9 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 198.6 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 55.92 kB / 366.3 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09734, allocations: 52.13 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003936/0.1013, allocations: 2.473 MB / 421 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.1036, allocations: 1.344 MB / 422.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.1037, allocations: 15.88 kB / 422.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006722/0.1044, allocations: 234.9 kB / 422.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.1047, allocations: 163.2 kB / 422.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.1055, allocations: 298.8 kB / 423 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005164/0.106, allocations: 475.7 kB / 423.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.1063, allocations: 157.9 kB / 423.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.1065, allocations: 195.2 kB / 423.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.1068, allocations: 226.9 kB / 424 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.1068, allocations: 36 kB / 424.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.107, allocations: 123.9 kB / 424.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.1072, allocations: 127.6 kB / 424.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.1074, allocations: 210.7 kB / 424.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007053/0.1081, allocations: 0.5678 MB / 425.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1081, allocations: 4 kB / 425.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1081, allocations: 0 / 425.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1081, allocations: 0 / 425.1 MB, free: 5.957 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001328/0.1094, allocations: 0.8664 MB / 425.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.1094, allocations: 8.031 kB / 426 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.023e-05/0.1095, allocations: 9.188 kB / 426 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.633e-05/0.1095, allocations: 82.66 kB / 426 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.1096, allocations: 64.56 kB / 426.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.1101, allocations: 406.6 kB / 426.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.716e-05/0.1102, allocations: 54.7 kB / 426.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.757e-05/0.1103, allocations: 40 kB / 426.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.1109, allocations: 420.7 kB / 427 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1109, allocations: 7.938 kB / 427 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.111, allocations: 19.98 kB / 427 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.111, allocations: 12.44 kB / 427 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000474/0.1115, allocations: 265.5 kB / 427.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.1133, allocations: 1.674 MB / 429 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005752/0.1139, allocations: 275.9 kB / 429.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.1141, allocations: 110.5 kB / 429.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.25e-05/0.1142, allocations: 15.98 kB / 429.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004667/0.1146, allocations: 332.1 kB / 429.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.634e-06/0.1146, allocations: 4 kB / 429.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009709/0.1156, allocations: 482.8 kB / 430.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.1157, allocations: 170.1 kB / 430.3 MB, free: 336 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005513/0.1163, allocations: 489.5 kB / 430.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/0.1163, allocations: 41.7 kB / 430.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.1165, allocations: 236.8 kB / 431.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.205e-05/0.1166, allocations: 87.36 kB / 431.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.1168, allocations: 122.2 kB / 431.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.1169, allocations: 358.8 kB / 431.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.1172, allocations: 117.1 kB / 431.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.1176, allocations: 262.7 kB / 432 MB, free: 14.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006132/0.1182, allocations: 423.2 kB / 432.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1182, allocations: 4.25 kB / 432.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008076/0.119, allocations: 482.8 kB / 432.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.119, allocations: 37.69 kB / 432.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.119, allocations: 4 kB / 432.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.119, allocations: 4 kB / 432.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1192, allocations: 43.86 kB / 433 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.1192, allocations: 20.33 kB / 433 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.1194, allocations: 59.66 kB / 433.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.1195, allocations: 16 kB / 433.1 MB, free: 13.4 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.000275/0.1198, allocations: 248.7 kB / 433.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.517e-05/0.1198, allocations: 51.66 kB / 433.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000509/0.1204, allocations: 261.2 kB / 433.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.1204, allocations: 7.938 kB / 433.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1204, allocations: 7.938 kB / 433.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.1204, allocations: 7.984 kB / 433.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.1215, allocations: 0.7726 MB / 434.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.1215, allocations: 3.938 kB / 434.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.151e-05/0.1215, allocations: 19.94 kB / 434.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1215, allocations: 4 kB / 434.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/0.1216, allocations: 15.98 kB / 434.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1216, allocations: 0 / 434.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1216, allocations: 0 / 434.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007759/0.1224, allocations: 0.5135 MB / 435 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.883e-05/0.1225, allocations: 132.7 kB / 435.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.787e-05/0.1225, allocations: 12 kB / 435.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.1227, allocations: 23.97 kB / 435.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.1228, allocations: 35.95 kB / 435.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.1229, allocations: 23.98 kB / 435.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003477/0.1232, allocations: 319.1 kB / 435.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1232, allocations: 0 / 435.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00046/0.1237, allocations: 127.7 kB / 435.6 MB, free: 10.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.002532/0.1262, allocations: 1.414 MB / 437.1 MB, free: 9.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006731/0.1269, allocations: 367 kB / 437.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1269, allocations: 0 / 437.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003385/0.1272, allocations: 199.2 kB / 437.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.1277, allocations: 97.64 kB / 437.7 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005263/0.133, allocations: 4.029 MB / 441.7 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005058/0.1335, allocations: 0.8325 MB / 442.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.1337, allocations: 79.25 kB / 442.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.1339, allocations: 167.4 kB / 442.8 MB, free: 3.422 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1339, allocations: 0 / 442.8 MB, free: 3.422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1997/0.3336, allocations: 10.17 MB / 453 MB, free: 29.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.585/8.918, allocations: 3.672 kB / 453 MB, free: 29.64 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197981 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.206051961984485] Failed to read output from testmodel.py, exit status != 0: ['time', 'and1.u[1]', 'and1.u[2]', 'and1.u[3]', 'booleanTable.y', 'changing.u', 'nand1.u[1]', 'nand1.u[2]', 'onDelay.u', 'or1.u[1]', 'or1.u[2]', 'or2.u[1]', 'or2.u[2]', 'rSFlipFlop.pre.u', 'rising.u', 'set1.y', 'triggeredAdd.y', 'xor1.u[1]', 'xor1.u[2]'] 9.100109555001836 9.113274168 9.00261595 Calling exit ...