Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",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.00165/0.00165, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001707/0.001708, allocations: 192 kB / 18 MB, free: 5.102 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.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 47.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2689, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003617/0.2726, allocations: 2.006 MB / 402.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.2746, allocations: 1.138 MB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2748, allocations: 0 / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000904/0.2757, allocations: 310.3 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004569/0.2762, allocations: 199.3 kB / 403.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007496/0.2769, allocations: 294.8 kB / 404.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.2773, allocations: 339.2 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.2775, allocations: 60.36 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.2777, allocations: 143.4 kB / 404.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.2779, allocations: 139.4 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.17e-05/0.278, allocations: 23.98 kB / 404.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001886/0.2782, allocations: 75.95 kB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.2783, allocations: 95.66 kB / 405 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.2785, allocations: 123.2 kB / 405.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004641/0.2789, allocations: 353.7 kB / 405.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.2789, allocations: 4 kB / 405.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2789, allocations: 0 / 405.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.279, allocations: 0 / 405.5 MB, free: 3.562 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001137/0.2801, allocations: 0.6608 MB / 406.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2801, allocations: 8.031 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.682e-05/0.2802, allocations: 42.73 kB / 406.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.515e-05/0.2803, allocations: 36.7 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.2808, allocations: 347.7 kB / 406.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.2808, allocations: 16 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.2808, allocations: 11.98 kB / 406.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.2812, allocations: 147.8 kB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.2812, allocations: 0 / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.2812, allocations: 7.984 kB / 406.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2812, allocations: 0 / 406.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.2814, allocations: 71.97 kB / 406.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007367/0.2821, allocations: 496.2 kB / 407.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.2825, allocations: 142.7 kB / 407.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.2826, allocations: 52.78 kB / 407.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2826, allocations: 0 / 407.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.2829, allocations: 107.3 kB / 407.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.2829, allocations: 4 kB / 407.6 MB, free: 1.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000526/0.2834, allocations: 217.3 kB / 407.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.2835, allocations: 114.8 kB / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005041/0.284, allocations: 428.5 kB / 408.3 MB, free: 472 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.2841, allocations: 33.7 kB / 408.4 MB, free: 432 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.2842, allocations: 164 kB / 408.5 MB, free: 264 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.43e-05/0.2843, allocations: 39.72 kB / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.2843, allocations: 41.7 kB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.2845, allocations: 342.8 kB / 408.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.2847, allocations: 47.92 kB / 409 MB, free: 15.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.2848, allocations: 105.9 kB / 409.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.2851, allocations: 110.1 kB / 409.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2851, allocations: 0 / 409.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003359/0.2854, allocations: 177.4 kB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2855, allocations: 4 kB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.2855, allocations: 3.984 kB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.2855, allocations: 4 kB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2856, allocations: 19.94 kB / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.2856, allocations: 7.984 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.884e-05/0.2857, allocations: 19.89 kB / 409.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.2858, allocations: 4 kB / 409.4 MB, free: 15.3 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.0001862/0.286, allocations: 179.5 kB / 409.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.861e-05/0.286, allocations: 31.81 kB / 409.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/0.2861, allocations: 34.94 kB / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2861, allocations: 0 / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2861, allocations: 0 / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2861, allocations: 0 / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003066/0.2864, allocations: 313.2 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2864, allocations: 0 / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.911e-05/0.2865, allocations: 15.92 kB / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2865, allocations: 4 kB / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.2865, allocations: 8 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2865, allocations: 0 / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2865, allocations: 0 / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003536/0.2869, allocations: 200.8 kB / 410.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.989e-05/0.287, allocations: 104.9 kB / 410.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.2871, allocations: 11.98 kB / 410.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.2871, allocations: 12 kB / 410.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.2872, allocations: 11.92 kB / 410.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.2872, allocations: 15.98 kB / 410.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003609/0.2876, allocations: 307 kB / 410.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2876, allocations: 0 / 410.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.2879, allocations: 59.88 kB / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002103/0.29, allocations: 1.062 MB / 411.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.2904, allocations: 123.8 kB / 411.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.2904, allocations: 0 / 411.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.2905, allocations: 59.92 kB / 412 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.291, allocations: 72.81 kB / 412 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.2947, allocations: 2.801 MB / 414.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.2952, allocations: 0.779 MB / 415.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.2954, allocations: 54.22 kB / 415.7 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.2955, allocations: 95.41 kB / 415.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2955, allocations: 0 / 415.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.3261, allocations: 7.192 MB / 423 MB, free: 1.812 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.362/8.688, allocations: 14.67 kB / 423 MB, free: 1.801 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_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_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches