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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 114.5 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004638/0.1092, allocations: 2.425 MB / 377.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002772/0.112, allocations: 1.259 MB / 378.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.1125, allocations: 11.94 kB / 378.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009282/0.1135, allocations: 242.9 kB / 378.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005727/0.114, allocations: 163.2 kB / 378.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000894/0.1149, allocations: 271.3 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008098/0.1158, allocations: 483.7 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.197/0.3128, allocations: 217.7 kB / 379.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006227/0.3135, allocations: 189.7 kB / 379.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004903/0.314, allocations: 215.6 kB / 380.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.3142, allocations: 36.62 kB / 380.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004996/0.3147, allocations: 126.1 kB / 380.3 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002596/0.315, allocations: 133.3 kB / 380.4 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.3154, allocations: 212.4 kB / 380.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001571/0.317, allocations: 0.5615 MB / 381.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.317, allocations: 0 / 381.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.317, allocations: 4.812 kB / 381.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.082e-05/0.3171, allocations: 0 / 381.2 MB, free: 9.09 MB / 318.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.002553/0.3196, allocations: 0.8633 MB / 382 MB, free: 8.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.3197, allocations: 8.25 kB / 382 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.3198, allocations: 77.17 kB / 382.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.32, allocations: 60.58 kB / 382.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006516/0.3207, allocations: 398.7 kB / 382.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.179e-05/0.3208, allocations: 61.33 kB / 382.6 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.3208, allocations: 42.69 kB / 382.7 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00082/0.3217, allocations: 429.5 kB / 383.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3217, allocations: 1.125 kB / 383.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.3218, allocations: 15.81 kB / 383.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.054e-05/0.3218, allocations: 17.03 kB / 383.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005202/0.3223, allocations: 265.7 kB / 383.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/0.3243, allocations: 1.671 MB / 385 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006541/0.325, allocations: 300.1 kB / 385.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.3252, allocations: 127.4 kB / 385.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.38e-05/0.3253, allocations: 18.42 kB / 385.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004921/0.3258, allocations: 328.8 kB / 385.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.904e-06/0.3258, allocations: 0 / 385.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001003/0.3268, allocations: 481.4 kB / 386.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.3269, allocations: 174.9 kB / 386.4 MB, free: 6.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.3276, allocations: 488.9 kB / 386.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.3277, allocations: 41 kB / 387 MB, free: 6.199 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.3278, allocations: 230.5 kB / 387.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.847e-05/0.3279, allocations: 93.66 kB / 387.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.3281, allocations: 116.8 kB / 387.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.3282, allocations: 360.1 kB / 387.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.3284, allocations: 114.1 kB / 387.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.3288, allocations: 271.8 kB / 388.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.3293, allocations: 423.1 kB / 388.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3293, allocations: 2.281 kB / 388.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008024/0.3301, allocations: 486.4 kB / 389 MB, free: 4.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.3302, allocations: 35.42 kB / 389 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3302, allocations: 4.75 kB / 389 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/0.3302, allocations: 6.375 kB / 389 MB, free: 4.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.3304, allocations: 44.92 kB / 389.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.3304, allocations: 7.625 kB / 389.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.3306, allocations: 57.39 kB / 389.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-05/0.3307, allocations: 22.86 kB / 389.2 MB, free: 4.777 MB / 318.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.0002647/0.331, allocations: 254.5 kB / 389.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-05/0.3311, allocations: 46.98 kB / 389.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005125/0.3316, allocations: 266 kB / 389.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3316, allocations: 4.562 kB / 389.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.3316, allocations: 1.062 kB / 389.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3316, allocations: 7.609 kB / 389.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.3327, allocations: 0.7822 MB / 390.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3328, allocations: 1.25 kB / 390.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.219e-05/0.3328, allocations: 15.3 kB / 390.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.3328, allocations: 2.922 kB / 390.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/0.3329, allocations: 12.14 kB / 390.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3329, allocations: 6.031 kB / 390.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3329, allocations: 1.75 kB / 390.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007136/0.3336, allocations: 0.5164 MB / 391.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.28e-05/0.3337, allocations: 128 kB / 391.2 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.318e-05/0.3338, allocations: 10.67 kB / 391.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.334, allocations: 31.14 kB / 391.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.3342, allocations: 45.17 kB / 391.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.3342, allocations: 14.88 kB / 391.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000402/0.3346, allocations: 322.9 kB / 391.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3346, allocations: 1.438 kB / 391.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005824/0.3352, allocations: 118.6 kB / 391.7 MB, free: 3.32 MB / 318.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 (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.001972/0.3372, allocations: 1.392 MB / 393.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008974/0.3381, allocations: 403.2 kB / 393.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3381, allocations: 0 / 393.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.3385, allocations: 234.8 kB / 393.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006732/0.3392, allocations: 92.8 kB / 393.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005297/0.3445, allocations: 4.026 MB / 397.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.345, allocations: 0.8385 MB / 398.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.3454, allocations: 81.09 kB / 398.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/0.3456, allocations: 164.9 kB / 398.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3456, allocations: 0 / 398.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0369/0.3825, allocations: 10.1 MB / 409 MB, free: 10.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.574/8.957, allocations: 0 / 409 MB, free: 10.77 MB / 334.1 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches