Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008136/0.0008137, allocations: 175.5 kB / 16.71 MB, free: 5.066 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 225.7 MB / 243.2 MB, free: 8.441 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007627/0.0007632, allocations: 94.19 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002379/0.0002379, allocations: 15.92 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.1895, allocations: 50.41 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001597/0.1912, allocations: 1.653 MB / 406.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1925, allocations: 1.445 MB / 407.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.326e-05/0.1926, allocations: 0 / 407.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005863/0.1932, allocations: 286.4 kB / 407.9 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002869/0.1934, allocations: 187.1 kB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.1939, allocations: 264.7 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.1942, allocations: 339.1 kB / 408.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1943, allocations: 58.48 kB / 408.8 MB, free: 27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1944, allocations: 129.6 kB / 408.9 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.1945, allocations: 127.5 kB / 409 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.1946, allocations: 4 kB / 409 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.1947, allocations: 59.91 kB / 409.1 MB, free: 26.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.197e-05/0.1947, allocations: 75.73 kB / 409.2 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.286e-05/0.1948, allocations: 140.2 kB / 409.3 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.1951, allocations: 324.4 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1951, allocations: 0 / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1951, allocations: 0 / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.1951, allocations: 0 / 409.6 MB, free: 26.16 MB / 298.7 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.0006385/0.1958, allocations: 0.6118 MB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.1958, allocations: 12.03 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.1959, allocations: 32.56 kB / 410.3 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.1962, allocations: 328 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.1962, allocations: 11.94 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.1962, allocations: 12 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.1965, allocations: 149 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1965, allocations: 0 / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.1965, allocations: 12 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1965, allocations: 0 / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.1966, allocations: 67.95 kB / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004719/0.1971, allocations: 0.4886 MB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.1974, allocations: 134.6 kB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.772e-05/0.1975, allocations: 52.83 kB / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.1975, allocations: 0 / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/0.1977, allocations: 119.3 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.1977, allocations: 0 / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003588/0.1981, allocations: 213.5 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.1981, allocations: 102.8 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.1984, allocations: 432.4 kB / 412.4 MB, free: 23.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1984, allocations: 33.7 kB / 412.4 MB, free: 23.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.293e-05/0.1985, allocations: 172 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.1985, allocations: 31.47 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-06/0.1986, allocations: 8 kB / 412.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.292e-05/0.1986, allocations: 342.8 kB / 412.9 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.76e-05/0.1987, allocations: 43.94 kB / 413 MB, free: 22.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.1988, allocations: 102 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.199, allocations: 106.6 kB / 413.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.199, allocations: 4 kB / 413.2 MB, free: 22.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002273/0.1992, allocations: 177.1 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/0.1992, allocations: 4 kB / 413.4 MB, free: 22.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1992, allocations: 4 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.1993, allocations: 4.062 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.793e-05/0.1994, allocations: 27.92 kB / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1994, allocations: 0 / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.817e-05/0.1995, allocations: 23.83 kB / 413.4 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.1995, allocations: 4 kB / 413.4 MB, free: 22.07 MB / 298.7 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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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.0001013/0.1996, allocations: 175.5 kB / 413.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.1996, allocations: 27.66 kB / 413.6 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.265e-05/0.1997, allocations: 46.92 kB / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1997, allocations: 0 / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1997, allocations: 0 / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1997, allocations: 48 / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.1999, allocations: 301.4 kB / 414 MB, free: 21.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1999, allocations: 3.938 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.552e-05/0.1999, allocations: 15.94 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1999, allocations: 0 / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.2, allocations: 4 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2, allocations: 0 / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2, allocations: 3.984 kB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.2002, allocations: 196.7 kB / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.953e-05/0.2003, allocations: 116.7 kB / 414.3 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.2003, allocations: 7.984 kB / 414.3 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.773e-05/0.2004, allocations: 11.94 kB / 414.3 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.2005, allocations: 19.97 kB / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.2005, allocations: 11.94 kB / 414.3 MB, free: 21.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002261/0.2007, allocations: 315 kB / 414.6 MB, free: 20.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2007, allocations: 0 / 414.6 MB, free: 20.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002219/0.201, allocations: 55.92 kB / 414.7 MB, free: 20.69 MB / 298.7 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.0007903/0.2018, allocations: 493.6 kB / 415.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002334/0.202, allocations: 119.8 kB / 415.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.202, allocations: 4.125 kB / 415.3 MB, free: 20.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.2021, allocations: 64.19 kB / 415.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.2025, allocations: 65.61 kB / 415.4 MB, free: 20.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005921/0.2031, allocations: 0.558 MB / 416 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.2032, allocations: 0.7716 MB / 416.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.2033, allocations: 46.25 kB / 416.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.97e-05/0.2034, allocations: 31.42 kB / 416.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2034, allocations: 0 / 416.8 MB, free: 18.63 MB / 298.7 MB Notification: Performance of Templates: time 0.005616/0.209, allocations: 3.587 MB / 420.4 MB, free: 15.07 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches