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.001831/0.001831, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001999/0.001999, allocations: 190.9 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.414/1.414, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001819/0.001819, allocations: 59.91 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09656, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004268/0.1009, allocations: 2.437 MB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.103, allocations: 1.259 MB / 378.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.1032, allocations: 11.94 kB / 378.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006911/0.104, allocations: 234.9 kB / 378.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003557/0.1043, allocations: 155.2 kB / 378.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006374/0.105, allocations: 279.4 kB / 379 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.1055, allocations: 475.7 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000325/0.1059, allocations: 213.7 kB / 379.7 MB, free: 0 / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1667/0.2725, allocations: 185.1 kB / 379.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.2728, allocations: 210.3 kB / 380.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.475e-05/0.2729, allocations: 37.5 kB / 380.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/0.2732, allocations: 132.2 kB / 380.2 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.2733, allocations: 124.4 kB / 380.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.2735, allocations: 216.4 kB / 380.6 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007603/0.2742, allocations: 0.5674 MB / 381.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2743, allocations: 0 / 381.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2743, allocations: 1.125 kB / 381.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.2743, allocations: 3.688 kB / 381.1 MB, free: 9.137 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.001237/0.2755, allocations: 0.8626 MB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2756, allocations: 9.625 kB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.157e-05/0.2756, allocations: 73.59 kB / 382.1 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.2758, allocations: 57.61 kB / 382.1 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.2763, allocations: 402.1 kB / 382.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.508e-05/0.2764, allocations: 60.34 kB / 382.6 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.908e-05/0.2764, allocations: 43.31 kB / 382.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000786/0.2772, allocations: 430.2 kB / 383.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.2773, allocations: 5.094 kB / 383.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.2773, allocations: 15.83 kB / 383.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.842e-05/0.2773, allocations: 12.5 kB / 383.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000479/0.2778, allocations: 267.2 kB / 383.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.2795, allocations: 1.677 MB / 385 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.28, allocations: 300.4 kB / 385.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.2803, allocations: 125 kB / 385.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.161e-05/0.2803, allocations: 14.2 kB / 385.5 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004364/0.2808, allocations: 337.6 kB / 385.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.643e-06/0.2808, allocations: 0 / 385.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009149/0.2817, allocations: 481.9 kB / 386.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.2818, allocations: 169.9 kB / 386.4 MB, free: 6.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005031/0.2823, allocations: 489.3 kB / 386.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.2823, allocations: 41.73 kB / 386.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.2825, allocations: 231.9 kB / 387.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.726e-05/0.2826, allocations: 91.72 kB / 387.3 MB, free: 6.078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.2828, allocations: 115.6 kB / 387.4 MB, free: 6.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.054e-05/0.2828, allocations: 361.6 kB / 387.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/0.2831, allocations: 117.1 kB / 387.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.2834, allocations: 267.9 kB / 388.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005206/0.284, allocations: 421.6 kB / 388.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.284, allocations: 5.219 kB / 388.5 MB, free: 5.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007885/0.2848, allocations: 481.4 kB / 389 MB, free: 4.953 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.2848, allocations: 41.05 kB / 389 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2848, allocations: 4.688 kB / 389 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.2849, allocations: 9.656 kB / 389 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.285, allocations: 39.73 kB / 389.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.285, allocations: 11.62 kB / 389.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.2853, allocations: 58.25 kB / 389.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.2853, allocations: 23.39 kB / 389.2 MB, free: 4.879 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.0002186/0.2855, allocations: 248.2 kB / 389.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.2856, allocations: 47.25 kB / 389.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004647/0.2861, allocations: 266.2 kB / 389.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.2861, allocations: 4.594 kB / 389.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2861, allocations: 2.797 kB / 389.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2861, allocations: 2.25 kB / 389.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.2871, allocations: 0.778 MB / 390.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2871, allocations: 0 / 390.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.143e-05/0.2872, allocations: 19.03 kB / 390.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.2872, allocations: 2.156 kB / 390.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.2873, allocations: 16.81 kB / 390.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.2873, allocations: 6.812 kB / 390.6 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.2873, allocations: 4.562 kB / 390.6 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007089/0.288, allocations: 0.5158 MB / 391.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.2881, allocations: 119.2 kB / 391.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/0.2882, allocations: 15.31 kB / 391.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.2884, allocations: 27.88 kB / 391.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.2885, allocations: 42.53 kB / 391.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.2885, allocations: 18.2 kB / 391.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003237/0.2889, allocations: 327.3 kB / 391.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.774e-06/0.2889, allocations: 0 / 391.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004828/0.2894, allocations: 124.3 kB / 391.7 MB, free: 3.426 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.002155/0.2915, allocations: 1.388 MB / 393.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006611/0.2922, allocations: 401.8 kB / 393.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2922, allocations: 4.125 kB / 393.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.2925, allocations: 242.6 kB / 393.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005503/0.2931, allocations: 98.77 kB / 393.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004748/0.2979, allocations: 4.016 MB / 397.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.2984, allocations: 0.8378 MB / 398.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002385/0.2986, allocations: 77.31 kB / 398.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.2989, allocations: 165 kB / 398.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2989, allocations: 4 kB / 398.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3322, allocations: 10.08 MB / 409 MB, free: 10.86 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.433/8.765, allocations: 6.594 kB / 409 MB, free: 10.86 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 & /home/hudson/saved_omc/OMSimulator/install/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) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/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