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.001719/0.001719, allocations: 113.2 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.001902/0.001902, allocations: 188.2 kB / 18.67 MB, free: 4.406 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.478/1.478, 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.001688/0.001688, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.1013, allocations: 46.62 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004396/0.1058, allocations: 2.437 MB / 377.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002376/0.1082, allocations: 1.255 MB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.1084, allocations: 15.94 kB / 378.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008173/0.1092, allocations: 238.9 kB / 378.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004283/0.1097, allocations: 163.2 kB / 378.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007447/0.1104, allocations: 271.3 kB / 379 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005875/0.111, allocations: 471.7 kB / 379.5 MB, free: 220 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.1114, allocations: 217.7 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1874/0.2988, allocations: 189 kB / 379.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.2992, allocations: 208.2 kB / 380.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.553e-05/0.2993, allocations: 38.5 kB / 380.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.2997, allocations: 126.3 kB / 380.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.2998, allocations: 131.3 kB / 380.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002025/0.3, allocations: 216.3 kB / 380.6 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008139/0.3009, allocations: 0.5609 MB / 381.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3009, allocations: 6.594 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3009, allocations: 0.5 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.3009, allocations: 0 / 381.1 MB, free: 9.121 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.001353/0.3023, allocations: 0.8633 MB / 382 MB, free: 8.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3023, allocations: 16 kB / 382 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.457e-05/0.3024, allocations: 72.64 kB / 382.1 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.3025, allocations: 57.77 kB / 382.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.303, allocations: 400.2 kB / 382.5 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.725e-05/0.3031, allocations: 58.66 kB / 382.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.85e-05/0.3032, allocations: 48.42 kB / 382.6 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.3039, allocations: 422.5 kB / 383.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.304, allocations: 4.188 kB / 383.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.886e-05/0.304, allocations: 20.55 kB / 383.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.304, allocations: 17.58 kB / 383.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.3045, allocations: 262.2 kB / 383.4 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.3063, allocations: 1.668 MB / 385 MB, free: 6.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006047/0.307, allocations: 302.1 kB / 385.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.3072, allocations: 132.3 kB / 385.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-05/0.3073, allocations: 17.22 kB / 385.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004534/0.3077, allocations: 322.1 kB / 385.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.3077, allocations: 0 / 385.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009702/0.3087, allocations: 492.1 kB / 386.3 MB, free: 6.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.3088, allocations: 166.7 kB / 386.4 MB, free: 6.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.3093, allocations: 490 kB / 386.9 MB, free: 6.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.3094, allocations: 42.08 kB / 386.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3095, allocations: 228.2 kB / 387.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.585e-05/0.3096, allocations: 91.66 kB / 387.3 MB, free: 6.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.3097, allocations: 117.8 kB / 387.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.745e-05/0.3098, allocations: 366.3 kB / 387.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/0.3101, allocations: 116.1 kB / 387.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.3104, allocations: 264.6 kB / 388.1 MB, free: 5.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004804/0.3109, allocations: 422.7 kB / 388.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3109, allocations: 1.031 kB / 388.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007588/0.3117, allocations: 484.4 kB / 389 MB, free: 4.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.3117, allocations: 35.02 kB / 389 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.3117, allocations: 6.844 kB / 389 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.3117, allocations: 5.938 kB / 389 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.3119, allocations: 44.33 kB / 389.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.3119, allocations: 8.344 kB / 389.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.3122, allocations: 61.73 kB / 389.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.3122, allocations: 26.09 kB / 389.2 MB, free: 4.855 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.0002489/0.3125, allocations: 247.1 kB / 389.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/0.3126, allocations: 45.97 kB / 389.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000499/0.3131, allocations: 266.7 kB / 389.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3131, allocations: 8.938 kB / 389.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3131, allocations: 1.031 kB / 389.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.3131, allocations: 2.844 kB / 389.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.3143, allocations: 0.7765 MB / 390.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3143, allocations: 1.719 kB / 390.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.39e-05/0.3144, allocations: 15.22 kB / 390.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.3144, allocations: 2.406 kB / 390.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.3144, allocations: 16.28 kB / 390.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.3144, allocations: 17.81 kB / 390.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.3144, allocations: 1.031 kB / 390.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007287/0.3152, allocations: 0.5176 MB / 391.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/0.3152, allocations: 119.1 kB / 391.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.3153, allocations: 14.83 kB / 391.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3155, allocations: 30.81 kB / 391.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.3157, allocations: 43.12 kB / 391.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.3157, allocations: 20.22 kB / 391.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003644/0.3161, allocations: 319.2 kB / 391.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3161, allocations: 0 / 391.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005576/0.3167, allocations: 119.4 kB / 391.7 MB, free: 3.41 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.002359/0.319, allocations: 1.393 MB / 393.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007201/0.3198, allocations: 398.8 kB / 393.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3198, allocations: 0 / 393.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.3201, allocations: 242.5 kB / 393.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.3207, allocations: 102.6 kB / 393.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005102/0.3258, allocations: 4.019 MB / 397.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.3264, allocations: 0.8347 MB / 398.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002912/0.3267, allocations: 74.05 kB / 398.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002775/0.327, allocations: 164.7 kB / 398.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of SimCode: time 1.143e-06/0.327, allocations: 1.531 kB / 398.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03754/0.3646, allocations: 10.1 MB / 409 MB, free: 10.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.054/9.419, allocations: 2.906 kB / 409 MB, free: 10.84 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