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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 181 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008325/0.0008325, allocations: 102 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002658, allocations: 8 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2129, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09026/0.3032, allocations: 80.34 MB / 481.8 MB, free: 156 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.3035, allocations: 75.95 kB / 481.9 MB, free: 80 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02368/0.3272, allocations: 9.255 MB / 491.1 MB, free: 6.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3272, allocations: 0 / 491.1 MB, free: 6.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.3273, allocations: 12 kB / 491.2 MB, free: 6.809 MB / 362.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.0008243/0.3281, allocations: 0.6231 MB / 491.8 MB, free: 6.125 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3281, allocations: 12.03 kB / 491.8 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.3282, allocations: 35.58 kB / 491.8 MB, free: 6.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.3288, allocations: 342.9 kB / 492.2 MB, free: 5.703 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.3288, allocations: 8 kB / 492.2 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.3288, allocations: 8 kB / 492.2 MB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.3291, allocations: 161 kB / 492.3 MB, free: 5.516 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.3291, allocations: 3.938 kB / 492.3 MB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.3291, allocations: 0 / 492.3 MB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3291, allocations: 7.953 kB / 492.3 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.3293, allocations: 77.31 kB / 492.4 MB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006766/0.33, allocations: 0.5082 MB / 492.9 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.3303, allocations: 134.8 kB / 493.1 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.3303, allocations: 4 kB / 493.1 MB, free: 4.727 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.3306, allocations: 111.3 kB / 493.2 MB, free: 4.605 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.3306, allocations: 3.938 kB / 493.2 MB, free: 4.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.000489/0.3311, allocations: 221.2 kB / 493.4 MB, free: 4.379 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.3311, allocations: 106.8 kB / 493.5 MB, free: 4.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004517/0.3316, allocations: 395.6 kB / 493.9 MB, free: 3.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.3316, allocations: 33.7 kB / 493.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.3318, allocations: 171.9 kB / 494.1 MB, free: 3.648 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.3318, allocations: 35.52 kB / 494.1 MB, free: 3.613 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.3318, allocations: 0 / 494.1 MB, free: 3.613 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.332, allocations: 350.8 kB / 494.5 MB, free: 3.262 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.3321, allocations: 47.92 kB / 494.5 MB, free: 3.215 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.3322, allocations: 108.8 kB / 494.6 MB, free: 3.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.3324, allocations: 49.08 kB / 494.7 MB, free: 3.043 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3324, allocations: 0 / 494.7 MB, free: 3.043 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000304/0.3327, allocations: 188.5 kB / 494.8 MB, free: 2.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3327, allocations: 7.984 kB / 494.9 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.3327, allocations: 4 kB / 494.9 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3327, allocations: 4.047 kB / 494.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3329, allocations: 31.91 kB / 494.9 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.3329, allocations: 4 kB / 494.9 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.99e-05/0.333, allocations: 11.94 kB / 494.9 MB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.333, allocations: 8 kB / 494.9 MB, free: 2.785 MB / 362.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.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001538/0.3332, allocations: 179.5 kB / 495.1 MB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.85e-05/0.3332, allocations: 27.62 kB / 495.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003716/0.3336, allocations: 207.6 kB / 495.3 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3336, allocations: 0 / 495.3 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3336, allocations: 4 kB / 495.3 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3336, allocations: 0 / 495.3 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.3339, allocations: 321.4 kB / 495.6 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3339, allocations: 0 / 495.6 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.946e-05/0.334, allocations: 8 kB / 495.6 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.334, allocations: 7.938 kB / 495.7 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.334, allocations: 11.98 kB / 495.7 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.334, allocations: 3.938 kB / 495.7 MB, free: 1.961 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.334, allocations: 0 / 495.7 MB, free: 1.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.3344, allocations: 216.6 kB / 495.9 MB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.3345, allocations: 120.7 kB / 496 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.3346, allocations: 15.92 kB / 496 MB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.53e-05/0.3347, allocations: 8 kB / 496 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/0.3348, allocations: 19.97 kB / 496 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.3348, allocations: 4 kB / 496 MB, free: 1.547 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.3351, allocations: 311 kB / 496.4 MB, free: 1.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3351, allocations: 0 / 496.4 MB, free: 1.246 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002971/0.3354, allocations: 68.17 kB / 496.4 MB, free: 1.18 MB / 362.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.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008619/0.3363, allocations: 430.8 kB / 496.8 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002998/0.3366, allocations: 143.7 kB / 497 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3366, allocations: 3.938 kB / 497 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.3368, allocations: 71.89 kB / 497.1 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.3371, allocations: 72.31 kB / 497.1 MB, free: 0.625 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008222/0.338, allocations: 0.5504 MB / 497.7 MB, free: 48 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.3384, allocations: 0.7833 MB / 498.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.3385, allocations: 46.25 kB / 498.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.472e-05/0.3386, allocations: 35.42 kB / 498.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3386, allocations: 4 kB / 498.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of Templates: time 0.006889/0.3455, allocations: 3.799 MB / 0.4906 GB, free: 11.4 MB / 378.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