Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008871/0.0008871, allocations: 93.88 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001088, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246 MB, free: 11.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002184/0.0002186, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1104, allocations: 51.5 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.0029/0.1133, allocations: 2.079 MB / 360.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.1158, allocations: 1.388 MB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.116, allocations: 7.938 kB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006531/0.1167, allocations: 210.7 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004085/0.1171, allocations: 163.4 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007089/0.1178, allocations: 239.6 kB / 362.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004777/0.1183, allocations: 427.8 kB / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003141/0.1186, allocations: 158.6 kB / 362.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.1188, allocations: 151.3 kB / 363.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.1191, allocations: 167.2 kB / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.644e-05/0.1191, allocations: 15.94 kB / 363.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.1193, allocations: 91.88 kB / 363.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.1195, allocations: 87.67 kB / 363.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.1196, allocations: 105.4 kB / 363.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.1201, allocations: 375.4 kB / 363.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1201, allocations: 0 / 363.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1201, allocations: 4 kB / 363.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1201, allocations: 0 / 363.9 MB, free: 8.305 MB / 302.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.001296/0.1214, allocations: 0.7846 MB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1215, allocations: 8.031 kB / 364.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.1216, allocations: 78.53 kB / 364.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.567e-05/0.1217, allocations: 55.34 kB / 364.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.1222, allocations: 374.1 kB / 365.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.066e-05/0.1223, allocations: 66.59 kB / 365.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.1223, allocations: 40 kB / 365.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006379/0.123, allocations: 428.7 kB / 365.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.123, allocations: 0 / 365.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.123, allocations: 12 kB / 365.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.755e-05/0.1231, allocations: 12.44 kB / 365.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.1235, allocations: 265.5 kB / 366 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.1254, allocations: 1.709 MB / 367.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005954/0.126, allocations: 295.9 kB / 368 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.1262, allocations: 130.5 kB / 368.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.768e-05/0.1263, allocations: 12.06 kB / 368.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004629/0.1268, allocations: 324.6 kB / 368.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.245e-06/0.1268, allocations: 0 / 368.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008992/0.1277, allocations: 488.8 kB / 368.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.211e-05/0.1278, allocations: 170.2 kB / 369.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/0.1283, allocations: 497.2 kB / 369.6 MB, free: 2.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.1283, allocations: 41.7 kB / 369.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.1285, allocations: 236.5 kB / 369.9 MB, free: 1.965 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.423e-05/0.1286, allocations: 83 kB / 369.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/0.1286, allocations: 8 kB / 370 MB, free: 1.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1288, allocations: 358.8 kB / 370.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.129, allocations: 117.1 kB / 370.4 MB, free: 1.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003202/0.1293, allocations: 266.7 kB / 370.7 MB, free: 1.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.1296, allocations: 170.7 kB / 370.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1296, allocations: 0 / 370.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007452/0.1304, allocations: 479 kB / 371.3 MB, free: 436 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.1304, allocations: 37.66 kB / 371.4 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1305, allocations: 4 kB / 371.4 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.1305, allocations: 8 kB / 371.4 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.1306, allocations: 43.84 kB / 371.4 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.1307, allocations: 8 kB / 371.4 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.1309, allocations: 63.94 kB / 371.5 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.131, allocations: 24.31 kB / 371.5 MB, free: 240 kB / 302.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.2013/0.3323, allocations: 251 kB / 371.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/0.3325, allocations: 44.17 kB / 371.8 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.3336, allocations: 268.5 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.3336, allocations: 4.484 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.3336, allocations: 1.031 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.3336, allocations: 4.25 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.3351, allocations: 0.7851 MB / 372.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3351, allocations: 0.875 kB / 372.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.987e-05/0.3352, allocations: 19 kB / 372.9 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.3352, allocations: 4.219 kB / 372.9 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.3353, allocations: 15.38 kB / 372.9 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.3353, allocations: 2.859 kB / 372.9 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3353, allocations: 3.797 kB / 372.9 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.3361, allocations: 0.5143 MB / 373.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.3362, allocations: 125.1 kB / 373.5 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.177e-05/0.3363, allocations: 15.03 kB / 373.5 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.3366, allocations: 30.39 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3367, allocations: 40.53 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.3368, allocations: 15.91 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004258/0.3372, allocations: 329 kB / 373.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3372, allocations: 4.375 kB / 374 MB, free: 19.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005982/0.3378, allocations: 119.7 kB / 374.1 MB, free: 19.01 MB / 302.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.001933/0.3398, allocations: 1.403 MB / 375.5 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008239/0.3406, allocations: 395.7 kB / 375.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3406, allocations: 0 / 375.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000364/0.341, allocations: 243.4 kB / 376.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005847/0.3416, allocations: 79.52 kB / 376.2 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004154/0.3458, allocations: 2.518 MB / 378.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.3461, allocations: 0.8402 MB / 379.5 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002839/0.3464, allocations: 82.16 kB / 379.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.3466, allocations: 165.6 kB / 379.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3466, allocations: 0 / 379.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.3731, allocations: 9.19 MB / 389 MB, free: 13.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/0.3733, allocations: 209.4 kB / 389.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.527, allocations: 0 / 389.2 MB, free: 13.19 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat