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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001185, allocations: 205.6 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 89.3 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.12/0.1211, allocations: 56.9 MB / 343.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.221, allocations: 51.46 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3368/0.5579, allocations: 84.29 MB / 479 MB, free: 8.934 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.5582, allocations: 73.7 kB / 479 MB, free: 8.91 MB / 346.7 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.02842/0.5866, allocations: 10.35 MB / 489.4 MB, free: 276 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.5867, allocations: 8 kB / 489.4 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.5868, allocations: 55.34 kB / 489.5 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006699/0.5875, allocations: 389 kB / 489.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.143e-05/0.5876, allocations: 46.17 kB / 489.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-05/0.5877, allocations: 24 kB / 489.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004307/0.5881, allocations: 216.2 kB / 490.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006079/0.5887, allocations: 365.1 kB / 490.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.5887, allocations: 3.938 kB / 490.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.5888, allocations: 7.984 kB / 490.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.783e-05/0.5888, allocations: 21.09 kB / 490.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.5913, allocations: 1.592 MB / 492.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004856/0.5918, allocations: 253.1 kB / 492.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.592, allocations: 119.7 kB / 492.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001071/0.5921, allocations: 15.78 kB / 492.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005043/0.5926, allocations: 290.1 kB / 492.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.136e-06/0.5927, allocations: 0 / 492.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009214/0.5936, allocations: 303.8 kB / 493.1 MB, free: 12.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.5937, allocations: 158.4 kB / 493.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005509/0.5943, allocations: 430.9 kB / 493.6 MB, free: 12.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.5943, allocations: 29.7 kB / 493.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.5945, allocations: 183.6 kB / 493.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.955e-05/0.5946, allocations: 75.38 kB / 493.9 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.5946, allocations: 4 kB / 493.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.5948, allocations: 367.8 kB / 494.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.595, allocations: 101.7 kB / 494.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.5954, allocations: 250.1 kB / 494.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003904/0.5958, allocations: 126.1 kB / 494.8 MB, free: 11.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.5958, allocations: 4 kB / 494.8 MB, free: 11.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008209/0.5966, allocations: 387 kB / 495.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.5966, allocations: 4 kB / 495.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.5966, allocations: 4 kB / 495.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.5967, allocations: 8 kB / 495.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.5969, allocations: 43.8 kB / 495.2 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.5969, allocations: 7.984 kB / 495.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.5972, allocations: 40.05 kB / 495.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.5973, allocations: 19.81 kB / 495.3 MB, free: 10.94 MB / 362.7 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,rSFlipFlop.S,rSFlipFlop.R,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 () * 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.000218/0.5975, allocations: 179.4 kB / 495.4 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.5976, allocations: 47.44 kB / 495.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007602/0.5984, allocations: 332.1 kB / 495.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.5984, allocations: 4 kB / 495.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.5984, allocations: 4 kB / 495.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.5984, allocations: 5.766 kB / 495.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.5998, allocations: 0.73 MB / 496.5 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5998, allocations: 0 / 496.5 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.073e-05/0.5999, allocations: 19.92 kB / 496.6 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.5999, allocations: 4 kB / 496.6 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.5999, allocations: 11.48 kB / 496.6 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.5999, allocations: 0 / 496.6 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6, allocations: 4 kB / 496.6 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007769/0.6007, allocations: 457.8 kB / 497 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009453/0.6017, allocations: 0.8246 MB / 497.9 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.6018, allocations: 128.1 kB / 498 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.053e-05/0.6019, allocations: 11.86 kB / 498 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.6022, allocations: 31.97 kB / 498 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.6024, allocations: 35.81 kB / 498.1 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/0.6024, allocations: 15.81 kB / 498.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003563/0.6028, allocations: 299.8 kB / 498.4 MB, free: 8.133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001251/0.6041, allocations: 119.5 kB / 498.5 MB, free: 8.027 MB / 362.7 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.0009436/0.605, allocations: 352.4 kB / 498.8 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006235/0.6056, allocations: 325.4 kB / 499.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6057, allocations: 0.9375 kB / 499.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.606, allocations: 203.7 kB / 499.3 MB, free: 7.395 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004904/0.6065, allocations: 76.03 kB / 499.4 MB, free: 7.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.6077, allocations: 0.5893 MB / 0.4883 GB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006154/0.6084, allocations: 0.9005 MB / 0.4892 GB, free: 5.879 MB / 362.7 MB Notification: Performance of SimCode: time 8.02e-07/0.6084, allocations: 0 / 0.4892 GB, free: 5.879 MB / 362.7 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