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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009714/0.0009714, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000869/0.0008691, allocations: 78.38 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.562e-05/1.578e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08225/0.08228, allocations: 47.59 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3052/0.3875, allocations: 82.13 MB / 445.3 MB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.3878, allocations: 71.41 kB / 445.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02356/0.4114, allocations: 8.996 MB / 454.4 MB, free: 5.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4115, allocations: 0 / 454.4 MB, free: 5.773 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.4115, allocations: 12 kB / 454.4 MB, free: 5.762 MB / 330.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.001044/0.4125, allocations: 0.7382 MB / 455.1 MB, free: 5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.4126, allocations: 8.031 kB / 455.1 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.4127, allocations: 59.33 kB / 455.2 MB, free: 4.934 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.4132, allocations: 385 kB / 455.5 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.404e-05/0.4133, allocations: 45.67 kB / 455.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.4134, allocations: 27.95 kB / 455.6 MB, free: 4.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003504/0.4137, allocations: 208.8 kB / 455.8 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.4142, allocations: 369.9 kB / 456.2 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4143, allocations: 0 / 456.2 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.4143, allocations: 7.984 kB / 456.2 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.4143, allocations: 16.44 kB / 456.2 MB, free: 3.992 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.416, allocations: 1.593 MB / 457.8 MB, free: 2.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.4163, allocations: 274.5 kB / 458.1 MB, free: 2.273 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.4165, allocations: 105.4 kB / 458.2 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/0.4165, allocations: 16.2 kB / 458.2 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003222/0.4169, allocations: 305.7 kB / 458.5 MB, free: 1.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 2.995e-06/0.4169, allocations: 0 / 458.5 MB, free: 1.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=37): time 0.0006139/0.4175, allocations: 322.8 kB / 458.8 MB, free: 1.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.248e-05/0.4176, allocations: 169.6 kB / 459 MB, free: 1.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004337/0.418, allocations: 422.5 kB / 459.4 MB, free: 1.102 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.4181, allocations: 33.58 kB / 459.4 MB, free: 1.066 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.4182, allocations: 231 kB / 459.6 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.341e-05/0.4183, allocations: 73.56 kB / 459.7 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.4183, allocations: 3.438 kB / 459.7 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4185, allocations: 359.6 kB / 460.1 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.4186, allocations: 97.73 kB / 460.2 MB, free: 444 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.4189, allocations: 244.9 kB / 460.4 MB, free: 184 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.4191, allocations: 133.9 kB / 460.5 MB, free: 88 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.4191, allocations: 0 / 460.5 MB, free: 88 kB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006436/0.4198, allocations: 381.9 kB / 460.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.4198, allocations: 38.16 kB / 460.9 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.4199, allocations: 8.125 kB / 460.9 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.4199, allocations: 8 kB / 461 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.42, allocations: 47.23 kB / 461 MB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4201, allocations: 11.92 kB / 461 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.4203, allocations: 47.34 kB / 461.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.4203, allocations: 19.88 kB / 461.1 MB, free: 15.6 MB / 346.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.0001488/0.4205, allocations: 167.5 kB / 461.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005498/0.421, allocations: 325.8 kB / 461.6 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.028e-05/0.4211, allocations: 39.53 kB / 461.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006424/0.4218, allocations: 362.4 kB / 462 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.4218, allocations: 8.047 kB / 462 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4218, allocations: 8 kB / 462 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.4218, allocations: 7.984 kB / 462 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009598/0.4228, allocations: 0.7188 MB / 462.7 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4228, allocations: 0 / 462.7 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-05/0.4229, allocations: 27.44 kB / 462.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.4229, allocations: 4 kB / 462.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.4229, allocations: 8 kB / 462.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.4229, allocations: 3.984 kB / 462.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.4229, allocations: 7.938 kB / 462.7 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006113/0.4236, allocations: 474.6 kB / 463.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.981e-05/0.4237, allocations: 124.1 kB / 463.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.379e-05/0.4237, allocations: 11.36 kB / 463.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.424, allocations: 23.98 kB / 463.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.103e-05/0.4241, allocations: 38.62 kB / 463.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.4241, allocations: 19.8 kB / 463.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00028/0.4244, allocations: 294.4 kB / 463.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4244, allocations: 0 / 463.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004352/0.4248, allocations: 115.8 kB / 463.8 MB, free: 13.17 MB / 346.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.001662/0.4265, allocations: 1.433 MB / 465.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.427, allocations: 361.6 kB / 465.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.427, allocations: 8.188 kB / 465.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.4273, allocations: 220.2 kB / 465.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.4277, allocations: 72.48 kB / 465.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.429, allocations: 0.6875 MB / 466.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.4294, allocations: 0.8544 MB / 467.4 MB, free: 9.738 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002076/0.4296, allocations: 83.59 kB / 467.5 MB, free: 9.652 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.4298, allocations: 163.4 kB / 467.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of SimCode: time 1.794e-06/0.4298, allocations: 0 / 467.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.4596, allocations: 8.612 MB / 476.3 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.4598, allocations: 159 kB / 476.5 MB, free: 0.793 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.537, allocations: 3.938 kB / 476.5 MB, free: 0.7891 MB / 346.7 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) 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