Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_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.002206/0.002206, allocations: 187.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.354/2.354, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001176/0.001176, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005516/0.0005518, allocations: 12 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1071, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004203/0.1113, allocations: 2.024 MB / 376.7 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003233/0.1146, allocations: 1.159 MB / 377.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003664/0.115, allocations: 7.938 kB / 377.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009544/0.116, allocations: 187.4 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006207/0.1166, allocations: 143.5 kB / 378.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.1177, allocations: 215.5 kB / 378.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00073/0.1185, allocations: 300.3 kB / 378.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004723/0.119, allocations: 154.6 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000338/0.1193, allocations: 139.4 kB / 378.9 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.1197, allocations: 163.2 kB / 379.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.283e-05/0.1197, allocations: 8 kB / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.1201, allocations: 71.89 kB / 379.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.1203, allocations: 91.66 kB / 379.3 MB, free: 10.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001558/0.1204, allocations: 101.4 kB / 379.4 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007346/0.1212, allocations: 379.4 kB / 379.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1212, allocations: 3.938 kB / 379.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1212, allocations: 0 / 379.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.495e-06/0.1212, allocations: 4 kB / 379.7 MB, free: 10.2 MB / 282.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.001901/0.1231, allocations: 0.7733 MB / 380.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.1232, allocations: 8.031 kB / 380.5 MB, free: 9.348 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001646/0.1234, allocations: 78.53 kB / 380.6 MB, free: 9.262 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.1236, allocations: 59.34 kB / 380.7 MB, free: 9.203 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008263/0.1244, allocations: 374 kB / 381 MB, free: 8.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.403e-05/0.1245, allocations: 54.7 kB / 381.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.317e-05/0.1246, allocations: 40 kB / 381.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.1257, allocations: 428.6 kB / 381.5 MB, free: 8.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.1257, allocations: 4 kB / 381.5 MB, free: 8.238 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.643e-05/0.1258, allocations: 20 kB / 381.6 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.721e-05/0.1259, allocations: 12.44 kB / 381.6 MB, free: 8.207 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008076/0.1267, allocations: 269.5 kB / 381.8 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/0.13, allocations: 1.686 MB / 383.5 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.131, allocations: 292 kB / 383.8 MB, free: 5.859 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.979e-05/0.1311, allocations: 11.98 kB / 383.8 MB, free: 5.848 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007481/0.1319, allocations: 336.8 kB / 384.1 MB, free: 5.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 3.537e-06/0.1319, allocations: 0 / 384.1 MB, free: 5.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=37): time 0.001761/0.1337, allocations: 0.5569 MB / 384.7 MB, free: 4.895 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.1339, allocations: 166.2 kB / 384.9 MB, free: 4.695 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009356/0.1349, allocations: 493.2 kB / 385.3 MB, free: 4.207 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.135, allocations: 41.7 kB / 385.4 MB, free: 4.16 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.1353, allocations: 275 kB / 385.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.1354, allocations: 79 kB / 385.7 MB, free: 3.812 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.1355, allocations: 8 kB / 385.7 MB, free: 3.805 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1356, allocations: 334.8 kB / 386.1 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004326/0.1361, allocations: 117.1 kB / 386.2 MB, free: 3.355 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005455/0.1366, allocations: 266.7 kB / 386.4 MB, free: 3.035 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.1371, allocations: 171.1 kB / 386.6 MB, free: 2.863 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.1372, allocations: 0 / 386.6 MB, free: 2.863 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001248/0.1384, allocations: 462.7 kB / 387.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.466e-05/0.1385, allocations: 33.7 kB / 387.1 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.1385, allocations: 4 kB / 387.1 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.1386, allocations: 8 kB / 387.1 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.1388, allocations: 47.89 kB / 387.1 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.584e-05/0.1389, allocations: 7.938 kB / 387.2 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.1393, allocations: 67.73 kB / 387.2 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.701e-05/0.1394, allocations: 19.98 kB / 387.2 MB, free: 2.207 MB / 282.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,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.0004632/0.1399, allocations: 248.6 kB / 387.5 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.14, allocations: 51.39 kB / 387.5 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008538/0.1409, allocations: 265.6 kB / 387.8 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.1409, allocations: 4 kB / 387.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.141, allocations: 0 / 387.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.141, allocations: 0 / 387.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.1428, allocations: 0.7828 MB / 388.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.1429, allocations: 0 / 388.6 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.143, allocations: 19.92 kB / 388.6 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/0.143, allocations: 4 kB / 388.6 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/0.1431, allocations: 8 kB / 388.6 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.1431, allocations: 4 kB / 388.6 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1431, allocations: 0 / 388.6 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.1444, allocations: 0.5367 MB / 389.2 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.1445, allocations: 112.6 kB / 389.3 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.1447, allocations: 19.98 kB / 389.3 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2611/0.4058, allocations: 26.16 kB / 389.3 MB, free: 20.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/0.4061, allocations: 42.02 kB / 389.4 MB, free: 20.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.458e-05/0.4062, allocations: 16.81 kB / 389.4 MB, free: 20.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006785/0.4069, allocations: 320.5 kB / 389.7 MB, free: 20.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4069, allocations: 3.609 kB / 389.7 MB, free: 20.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008366/0.4078, allocations: 119.9 kB / 389.8 MB, free: 20.54 MB / 282.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,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.002871/0.4107, allocations: 1.564 MB / 391.4 MB, free: 19.47 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.412, allocations: 400.9 kB / 391.8 MB, free: 19.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.4121, allocations: 3.469 kB / 391.8 MB, free: 19.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006422/0.4127, allocations: 240.4 kB / 392 MB, free: 19.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.4136, allocations: 75.92 kB / 392.1 MB, free: 19.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006871/0.4205, allocations: 5.051 MB / 397.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.421, allocations: 0.8553 MB / 398 MB, free: 14.97 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.4214, allocations: 166 kB / 398.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of SimCode: time 2.295e-06/0.4214, allocations: 0 / 398.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.937/3.359, allocations: 8.209 MB / 406.3 MB, free: 12.46 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat