Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009125/0.0009124, allocations: 92.06 kB / 16.95 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 178 kB / 17.83 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006859/0.0006862, allocations: 12 kB / 280.9 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1145, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004184/0.1187, allocations: 2.04 MB / 330.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.1216, allocations: 1.171 MB / 331.7 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000397/0.122, allocations: 11.94 kB / 331.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008768/0.1229, allocations: 203.3 kB / 331.9 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006161/0.1235, allocations: 135.4 kB / 332 MB, free: 436 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008845/0.1244, allocations: 223.5 kB / 332.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007522/0.1252, allocations: 419.8 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.1256, allocations: 154.7 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.1259, allocations: 151.3 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003912/0.1263, allocations: 163.2 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.008e-05/0.1264, allocations: 12 kB / 333.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002887/0.1267, allocations: 95.88 kB / 333.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.1268, allocations: 87.67 kB / 333.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.127, allocations: 93.44 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008231/0.1278, allocations: 367.5 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1278, allocations: 0 / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.1278, allocations: 4 kB / 333.7 MB, free: 14.67 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.1279, allocations: 3.938 kB / 333.7 MB, free: 14.67 MB / 286.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.001631/0.1295, allocations: 0.781 MB / 334.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1296, allocations: 12.03 kB / 334.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001443/0.1297, allocations: 70.53 kB / 334.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.1299, allocations: 59.33 kB / 334.7 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.1305, allocations: 374 kB / 335 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.311e-05/0.1306, allocations: 58.7 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.534e-05/0.1307, allocations: 40 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007767/0.1314, allocations: 424.7 kB / 335.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1315, allocations: 7.922 kB / 335.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.1315, allocations: 15.98 kB / 335.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.304e-05/0.1316, allocations: 12.44 kB / 335.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006372/0.1322, allocations: 273.4 kB / 335.8 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.1348, allocations: 1.694 MB / 337.5 MB, free: 10.63 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006367/0.1354, allocations: 296 kB / 337.8 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.1357, allocations: 122.5 kB / 337.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.289e-05/0.1358, allocations: 27.98 kB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005699/0.1363, allocations: 332.2 kB / 338.3 MB, free: 9.793 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.657e-06/0.1364, allocations: 0 / 338.3 MB, free: 9.793 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0013/0.1377, allocations: 485 kB / 338.8 MB, free: 9.309 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.1378, allocations: 170.2 kB / 338.9 MB, free: 9.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000659/0.1385, allocations: 493.2 kB / 339.4 MB, free: 8.617 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.1385, allocations: 37.7 kB / 339.4 MB, free: 8.574 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.1387, allocations: 232.5 kB / 339.7 MB, free: 8.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.194e-05/0.1388, allocations: 83 kB / 339.7 MB, free: 8.262 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.192e-05/0.1389, allocations: 8 kB / 339.8 MB, free: 8.254 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.1391, allocations: 366.7 kB / 340.1 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.1393, allocations: 113.1 kB / 340.2 MB, free: 7.777 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004099/0.1398, allocations: 262.7 kB / 340.5 MB, free: 7.461 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.1401, allocations: 165.6 kB / 340.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.1401, allocations: 4 kB / 340.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008825/0.141, allocations: 482.1 kB / 341.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.375e-05/0.1411, allocations: 37.64 kB / 341.2 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1411, allocations: 4 kB / 341.2 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.1411, allocations: 8 kB / 341.2 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.1413, allocations: 48.31 kB / 341.2 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.1413, allocations: 11.94 kB / 341.2 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/0.1417, allocations: 63.56 kB / 341.3 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.1417, allocations: 20 kB / 341.3 MB, free: 6.609 MB / 286.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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003038/0.142, allocations: 252.6 kB / 341.6 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.962e-05/0.1421, allocations: 47.48 kB / 341.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005143/0.1426, allocations: 269.5 kB / 341.9 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.1427, allocations: 4 kB / 341.9 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.1427, allocations: 0 / 341.9 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1427, allocations: 0 / 341.9 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.1439, allocations: 0.7828 MB / 342.7 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.144, allocations: 0 / 342.7 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.196e-05/0.144, allocations: 15.92 kB / 342.7 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.473e-06/0.144, allocations: 4 kB / 342.7 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.1441, allocations: 8 kB / 342.7 MB, free: 5.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.024e-06/0.1441, allocations: 7.984 kB / 342.7 MB, free: 5.141 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1441, allocations: 4 kB / 342.7 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009342/0.145, allocations: 0.5099 MB / 343.2 MB, free: 4.602 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.1452, allocations: 124.4 kB / 343.3 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.995e-05/0.1452, allocations: 16 kB / 343.3 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.1455, allocations: 27.98 kB / 343.4 MB, free: 4.418 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.1456, allocations: 39.94 kB / 343.4 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.1456, allocations: 19.98 kB / 343.4 MB, free: 4.359 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004045/0.1461, allocations: 319.1 kB / 343.7 MB, free: 4.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1461, allocations: 0 / 343.7 MB, free: 4.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000526/0.1466, allocations: 115.8 kB / 343.8 MB, free: 3.934 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002193/0.1488, allocations: 1.416 MB / 345.3 MB, free: 2.496 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000745/0.1496, allocations: 387.2 kB / 345.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1496, allocations: 0 / 345.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.1499, allocations: 240.1 kB / 345.9 MB, free: 1.859 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.1505, allocations: 89.75 kB / 346 MB, free: 1.773 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004693/0.1552, allocations: 2.493 MB / 348.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006159/0.1559, allocations: 0.8436 MB / 349.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002587/0.1561, allocations: 79.27 kB / 349.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002352/0.1564, allocations: 159.4 kB / 349.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1564, allocations: 0 / 349.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.1839, allocations: 9.097 MB / 358.6 MB, free: 4.969 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/0.1842, allocations: 223.8 kB / 358.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.389, allocations: 0 / 358.8 MB, free: 4.715 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat