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.001168/0.001168, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001204, allocations: 59.47 kB / 307 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09014/0.09137, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.006092/0.09751, allocations: 2.476 MB / 360 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003832/0.1014, allocations: 1.469 MB / 361.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000333/0.1017, allocations: 11.94 kB / 361.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.1028, allocations: 238.9 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007871/0.1036, allocations: 195 kB / 361.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009749/0.1046, allocations: 271.2 kB / 362.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008113/0.1054, allocations: 483.7 kB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005102/0.106, allocations: 205.8 kB / 362.9 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.1064, allocations: 195.2 kB / 363.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004306/0.1069, allocations: 218.9 kB / 363.3 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.107, allocations: 36 kB / 363.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004105/0.1074, allocations: 119.9 kB / 363.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.1077, allocations: 123.6 kB / 363.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003585/0.1081, allocations: 214.7 kB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008345/0.1089, allocations: 0.5414 MB / 364.3 MB, free: 7.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1089, allocations: 0 / 364.3 MB, free: 7.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1089, allocations: 0 / 364.3 MB, free: 7.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.264e-05/0.109, allocations: 0 / 364.3 MB, free: 7.176 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.001586/0.1106, allocations: 0.8553 MB / 365.2 MB, free: 6.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1106, allocations: 8.031 kB / 365.2 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.85e-05/0.1107, allocations: 82.7 kB / 365.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002781/0.111, allocations: 60.28 kB / 365.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005501/0.1116, allocations: 398.8 kB / 365.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.309e-05/0.1116, allocations: 63.02 kB / 365.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.281e-05/0.1117, allocations: 43.98 kB / 365.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.1124, allocations: 420.7 kB / 366.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1124, allocations: 0 / 366.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.1125, allocations: 16 kB / 366.2 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.1125, allocations: 16.44 kB / 366.3 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005355/0.1131, allocations: 265.5 kB / 366.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1152, allocations: 1.69 MB / 368.2 MB, free: 3.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005598/0.1157, allocations: 295.9 kB / 368.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.116, allocations: 126.5 kB / 368.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.771e-05/0.1161, allocations: 8 kB / 368.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.1166, allocations: 335.7 kB / 369 MB, free: 2.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.235e-06/0.1166, allocations: 0 / 369 MB, free: 2.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009818/0.1176, allocations: 466.1 kB / 369.4 MB, free: 1.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1177, allocations: 174.2 kB / 369.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005758/0.1183, allocations: 0.4895 MB / 370.1 MB, free: 1.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.1183, allocations: 37.7 kB / 370.1 MB, free: 1.004 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.1185, allocations: 236.5 kB / 370.3 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.133e-05/0.1186, allocations: 79 kB / 370.4 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.1188, allocations: 122.1 kB / 370.5 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1189, allocations: 366.7 kB / 370.9 MB, free: 204 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.1192, allocations: 113.1 kB / 371 MB, free: 92 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1432/0.2624, allocations: 261.3 kB / 371.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008897/0.2633, allocations: 403.8 kB / 371.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.2634, allocations: 1.062 kB / 371.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001325/0.2647, allocations: 465.4 kB / 372.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.2648, allocations: 38.08 kB / 372.1 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.2648, allocations: 5.5 kB / 372.1 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.776e-05/0.2648, allocations: 5.844 kB / 372.2 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.2651, allocations: 43.25 kB / 372.2 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.935e-05/0.2651, allocations: 7.766 kB / 372.2 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003968/0.2655, allocations: 53.17 kB / 372.3 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.2656, allocations: 23.25 kB / 372.3 MB, free: 19.48 MB / 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,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.0003723/0.266, allocations: 259.9 kB / 372.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.2661, allocations: 48.64 kB / 372.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006391/0.2667, allocations: 231.5 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.2668, allocations: 4.203 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.2668, allocations: 3.688 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.2668, allocations: 6.422 kB / 372.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.2683, allocations: 0.7498 MB / 373.6 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.2684, allocations: 1.438 kB / 373.6 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.55e-05/0.2684, allocations: 14.36 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.2685, allocations: 2.375 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.2685, allocations: 10.98 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.2685, allocations: 2.094 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2685, allocations: 8.781 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.2692, allocations: 489.5 kB / 374.1 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.092e-05/0.2693, allocations: 116 kB / 374.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.536e-05/0.2693, allocations: 14.14 kB / 374.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.2695, allocations: 30.55 kB / 374.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.2697, allocations: 44.59 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.2697, allocations: 12.11 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003779/0.2701, allocations: 331.7 kB / 374.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2701, allocations: 0 / 374.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004746/0.2706, allocations: 120.4 kB / 374.7 MB, free: 18.55 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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.001621/0.2722, allocations: 1.377 MB / 376.1 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006558/0.2729, allocations: 415.1 kB / 376.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2729, allocations: 1.375 kB / 376.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003003/0.2732, allocations: 231.7 kB / 376.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.2738, allocations: 94.02 kB / 376.8 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004338/0.2781, allocations: 4.082 MB / 380.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.2784, allocations: 0.8386 MB / 381.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002229/0.2787, allocations: 76.3 kB / 381.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.2789, allocations: 159 kB / 382 MB, free: 13.9 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2789, allocations: 0 / 382 MB, free: 13.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.3084, allocations: 9.677 MB / 391.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/8.093, allocations: 17.66 kB / 391.7 MB, free: 10.74 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/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)