Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00135/0.001355, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2635, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004394/0.268, allocations: 2.485 MB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.2708, allocations: 1.465 MB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.271, allocations: 7.938 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007913/0.2718, allocations: 246.9 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005209/0.2723, allocations: 202.7 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006727/0.273, allocations: 263.3 kB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.2735, allocations: 483.7 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003816/0.2739, allocations: 213.8 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.2742, allocations: 199.2 kB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.2744, allocations: 211.1 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.912e-05/0.2745, allocations: 39.94 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.2748, allocations: 111.9 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.2749, allocations: 131.5 kB / 414.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.2751, allocations: 222.7 kB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007743/0.2759, allocations: 0.563 MB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2759, allocations: 0 / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.276, allocations: 0 / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.276, allocations: 0 / 415.6 MB, free: 10.7 MB / 334.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.001494/0.2775, allocations: 0.8703 MB / 416.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.2775, allocations: 8.031 kB / 416.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.382e-05/0.2776, allocations: 86.66 kB / 416.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002447/0.2779, allocations: 68.55 kB / 416.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005626/0.2784, allocations: 395.4 kB / 417 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.521e-05/0.2785, allocations: 63.02 kB / 417 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.557e-05/0.2786, allocations: 36 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.2793, allocations: 428.7 kB / 417.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2793, allocations: 0 / 417.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.2794, allocations: 23.92 kB / 417.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/0.2794, allocations: 20.38 kB / 417.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005257/0.2799, allocations: 269.5 kB / 417.8 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.282, allocations: 1.667 MB / 419.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006633/0.2827, allocations: 303.8 kB / 419.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.283, allocations: 126.5 kB / 419.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.283, allocations: 11.98 kB / 419.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005287/0.2836, allocations: 324 kB / 420.2 MB, free: 5.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/0.2836, allocations: 0 / 420.2 MB, free: 5.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001009/0.2846, allocations: 470.4 kB / 420.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.2847, allocations: 166.2 kB / 420.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006135/0.2853, allocations: 0.4896 MB / 421.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.564e-05/0.2854, allocations: 41.7 kB / 421.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.2856, allocations: 236.9 kB / 421.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.914e-05/0.2857, allocations: 87.38 kB / 421.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.2858, allocations: 126.2 kB / 421.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.286, allocations: 362.7 kB / 422.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.2863, allocations: 117 kB / 422.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.2867, allocations: 262.7 kB / 422.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005825/0.2873, allocations: 402.5 kB / 422.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2873, allocations: 0 / 422.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000826/0.2881, allocations: 471.1 kB / 423.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/0.2882, allocations: 37.69 kB / 423.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.2882, allocations: 8 kB / 423.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.2882, allocations: 8 kB / 423.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.2884, allocations: 43.86 kB / 423.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.2884, allocations: 4.469 kB / 423.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.2886, allocations: 63.64 kB / 423.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.959e-05/0.2887, allocations: 20 kB / 423.6 MB, free: 2.141 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.0003131/0.289, allocations: 244.6 kB / 423.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.874e-05/0.2891, allocations: 59.59 kB / 423.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004647/0.2896, allocations: 237.1 kB / 424.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.2896, allocations: 4 kB / 424.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2896, allocations: 0 / 424.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.87e-06/0.2896, allocations: 0 / 424.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.2907, allocations: 0.7415 MB / 424.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.2908, allocations: 4 kB / 424.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.376e-05/0.2908, allocations: 15.98 kB / 424.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.2908, allocations: 3.938 kB / 424.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.2909, allocations: 19.94 kB / 424.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.2909, allocations: 0 / 424.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2909, allocations: 0 / 424.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007568/0.2916, allocations: 492.6 kB / 425.4 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.664e-05/0.2918, allocations: 128.8 kB / 425.5 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.2918, allocations: 12 kB / 425.5 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.292, allocations: 23.98 kB / 425.5 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.2922, allocations: 51.88 kB / 425.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/0.2923, allocations: 12.05 kB / 425.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003632/0.2927, allocations: 335 kB / 425.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2927, allocations: 0 / 425.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004976/0.2932, allocations: 111.7 kB / 426 MB, free: 15.55 MB / 350.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.002479/0.2956, allocations: 1.375 MB / 427.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006912/0.2964, allocations: 394.3 kB / 427.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2964, allocations: 0 / 427.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003864/0.2968, allocations: 235.3 kB / 428 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000583/0.2974, allocations: 97.62 kB / 428.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005502/0.3029, allocations: 4.022 MB / 432.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005243/0.3034, allocations: 0.8434 MB / 433 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.3036, allocations: 75.25 kB / 433 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.3039, allocations: 159.3 kB / 433.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3039, allocations: 0 / 433.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03395/0.3378, allocations: 9.853 MB / 443 MB, free: 14.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.908/9.246, allocations: 7.922 kB / 443.1 MB, free: 14.46 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches