Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_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.001147/0.001147, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001118/0.001118, allocations: 194.9 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2979, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004681/0.3026, allocations: 2.457 MB / 402.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.3052, allocations: 1.325 MB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003368/0.3055, allocations: 8 kB / 404 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008258/0.3064, allocations: 237.7 kB / 404.3 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.3069, allocations: 163.2 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008046/0.3077, allocations: 305.2 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006079/0.3083, allocations: 471.8 kB / 405.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003646/0.3087, allocations: 205.8 kB / 405.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.309, allocations: 195.2 kB / 405.6 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.3093, allocations: 215 kB / 405.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.459e-05/0.3094, allocations: 36 kB / 405.8 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.3097, allocations: 119.9 kB / 405.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.3098, allocations: 127.5 kB / 406.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.3101, allocations: 218.7 kB / 406.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007257/0.3108, allocations: 0.5553 MB / 406.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3108, allocations: 0 / 406.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3108, allocations: 0 / 406.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.3108, allocations: 0 / 406.8 MB, free: 2.215 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.001523/0.3124, allocations: 0.882 MB / 407.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3124, allocations: 8.031 kB / 407.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.534e-05/0.3125, allocations: 74.72 kB / 407.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.3127, allocations: 60.56 kB / 407.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000556/0.3132, allocations: 402.9 kB / 408.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.03e-05/0.3133, allocations: 58.69 kB / 408.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.819e-05/0.3134, allocations: 47.94 kB / 408.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006614/0.314, allocations: 428.7 kB / 408.8 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3141, allocations: 3.938 kB / 408.8 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.3141, allocations: 16 kB / 408.8 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.3141, allocations: 12.44 kB / 408.8 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005107/0.3146, allocations: 273.5 kB / 409.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.3165, allocations: 1.667 MB / 410.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/0.3171, allocations: 299.9 kB / 411 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.3173, allocations: 130.5 kB / 411.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.797e-05/0.3174, allocations: 12.06 kB / 411.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.3179, allocations: 332.9 kB / 411.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/0.3179, allocations: 0 / 411.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009424/0.3188, allocations: 480.5 kB / 412 MB, free: 12.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/0.3189, allocations: 162.2 kB / 412.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.3195, allocations: 497.4 kB / 412.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.214e-05/0.3196, allocations: 45.64 kB / 412.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.3198, allocations: 236.9 kB / 412.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.597e-05/0.3199, allocations: 91.31 kB / 413 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.32, allocations: 118.2 kB / 413.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3202, allocations: 354.8 kB / 413.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.3204, allocations: 113.1 kB / 413.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.3208, allocations: 266.7 kB / 413.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000528/0.3213, allocations: 418.5 kB / 414.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3213, allocations: 4 kB / 414.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007914/0.3221, allocations: 478.5 kB / 414.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.3222, allocations: 33.7 kB / 414.7 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3222, allocations: 4.469 kB / 414.7 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.3222, allocations: 12 kB / 414.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.3224, allocations: 47.84 kB / 414.8 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.3224, allocations: 7.938 kB / 414.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.3227, allocations: 67.52 kB / 414.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.3227, allocations: 24 kB / 414.9 MB, free: 9.617 MB / 334.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.0002713/0.323, allocations: 248.7 kB / 415.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.613e-05/0.3231, allocations: 43.72 kB / 415.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005204/0.3236, allocations: 273.4 kB / 415.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3236, allocations: 4 kB / 415.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.3236, allocations: 7.938 kB / 415.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3236, allocations: 0 / 415.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.3247, allocations: 0.7809 MB / 416.2 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3247, allocations: 0 / 416.2 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.506e-05/0.3248, allocations: 19.86 kB / 416.2 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3248, allocations: 4 kB / 416.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.3249, allocations: 8 kB / 416.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3249, allocations: 7.984 kB / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3249, allocations: 0 / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007184/0.3256, allocations: 0.5138 MB / 416.8 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.3257, allocations: 124.7 kB / 416.9 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.573e-05/0.3258, allocations: 15.98 kB / 416.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.326, allocations: 23.98 kB / 416.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.3261, allocations: 35.95 kB / 417 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/0.3262, allocations: 19.98 kB / 417 MB, free: 7.383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003252/0.3265, allocations: 323.1 kB / 417.3 MB, free: 7.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3265, allocations: 4 kB / 417.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004943/0.327, allocations: 123.7 kB / 417.4 MB, free: 6.941 MB / 334.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.00195/0.329, allocations: 1.399 MB / 418.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006873/0.3297, allocations: 395.8 kB / 419.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3297, allocations: 0 / 419.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003336/0.33, allocations: 242.2 kB / 419.4 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005434/0.3306, allocations: 87.94 kB / 419.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.3358, allocations: 4.037 MB / 423.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.3362, allocations: 0.8403 MB / 424.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.3364, allocations: 79.25 kB / 424.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.3367, allocations: 163.4 kB / 424.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3367, allocations: 4 kB / 424.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.3658, allocations: 10.07 MB / 434.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.695, allocations: 7.984 kB / 434.7 MB, free: 5.621 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches