Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001201, allocations: 201.2 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.61/1.61, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009886/0.0009888, allocations: 92.03 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.000269, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2237, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1027/0.3265, allocations: 81.51 MB / 490.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.3267, allocations: 79.31 kB / 491 MB, free: 9.922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02988/0.3566, allocations: 10.19 MB / 0.4894 GB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3567, allocations: 0 / 0.4894 GB, free: 15.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.615e-05/0.3567, allocations: 4 kB / 0.4894 GB, free: 15.72 MB / 378.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.001212/0.3579, allocations: 0.6623 MB / 0.49 GB, free: 14.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.358, allocations: 8.031 kB / 0.4901 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.3581, allocations: 36.47 kB / 0.4901 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007124/0.3588, allocations: 370.3 kB / 0.4904 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.3589, allocations: 8.375 kB / 0.4904 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.3589, allocations: 16.38 kB / 0.4905 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.3592, allocations: 154 kB / 0.4906 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3592, allocations: 192 / 0.4906 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.3593, allocations: 11.92 kB / 0.4906 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.3593, allocations: 7.984 kB / 0.4906 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.3595, allocations: 71.95 kB / 0.4907 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009055/0.3604, allocations: 0.512 MB / 0.4912 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.3607, allocations: 142.7 kB / 0.4913 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.3609, allocations: 52.83 kB / 0.4914 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3609, allocations: 4 kB / 0.4914 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.3611, allocations: 111.3 kB / 0.4915 GB, free: 13.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.824e-06/0.3612, allocations: 0 / 0.4915 GB, free: 13.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005663/0.3617, allocations: 233.1 kB / 0.4917 GB, free: 13.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.3618, allocations: 106.8 kB / 0.4918 GB, free: 13.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005956/0.3624, allocations: 457.5 kB / 0.4923 GB, free: 12.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.3624, allocations: 29.7 kB / 0.4923 GB, free: 12.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.3626, allocations: 172 kB / 0.4924 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/0.3626, allocations: 35.53 kB / 0.4925 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.487e-06/0.3627, allocations: 8 kB / 0.4925 GB, free: 12.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3628, allocations: 346.8 kB / 0.4928 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.3629, allocations: 47.98 kB / 0.4929 GB, free: 11.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.3631, allocations: 104.2 kB / 0.493 GB, free: 11.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.3633, allocations: 113.7 kB / 0.4931 GB, free: 11.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3633, allocations: 4 kB / 0.4931 GB, free: 11.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003436/0.3637, allocations: 181.1 kB / 0.4933 GB, free: 11.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.3637, allocations: 8 kB / 0.4933 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.3637, allocations: 0 / 0.4933 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3637, allocations: 0 / 0.4933 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.3638, allocations: 31.92 kB / 0.4933 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3639, allocations: 3.938 kB / 0.4933 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.364, allocations: 23.98 kB / 0.4933 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.364, allocations: 12 kB / 0.4933 GB, free: 11.41 MB / 378.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.0001736/0.3642, allocations: 167.5 kB / 0.4935 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.3642, allocations: 31.62 kB / 0.4935 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003916/0.3646, allocations: 204.4 kB / 0.4937 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3647, allocations: 0 / 0.4937 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3647, allocations: 7.938 kB / 0.4937 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3647, allocations: 4 kB / 0.4937 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003054/0.365, allocations: 329.3 kB / 0.494 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.365, allocations: 0 / 0.494 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.265e-05/0.3651, allocations: 15.98 kB / 0.4941 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3651, allocations: 0 / 0.4941 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3651, allocations: 0 / 0.4941 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3651, allocations: 4 kB / 0.4941 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3651, allocations: 3.938 kB / 0.4941 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.3655, allocations: 219.2 kB / 0.4943 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.3656, allocations: 132.7 kB / 0.4944 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.504e-05/0.3657, allocations: 0 / 0.4944 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.762e-05/0.3658, allocations: 15.98 kB / 0.4944 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.3659, allocations: 19.92 kB / 0.4944 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.3659, allocations: 4 kB / 0.4944 GB, free: 10.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003684/0.3663, allocations: 327.1 kB / 0.4947 GB, free: 9.859 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3663, allocations: 0 / 0.4947 GB, free: 9.859 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003169/0.3666, allocations: 67.94 kB / 0.4948 GB, free: 9.793 MB / 378.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.00101/0.3676, allocations: 446.6 kB / 0.4952 GB, free: 9.496 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003736/0.368, allocations: 143.7 kB / 0.4954 GB, free: 9.355 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.368, allocations: 0 / 0.4954 GB, free: 9.355 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.3682, allocations: 63.97 kB / 0.4954 GB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.3686, allocations: 81.23 kB / 0.4955 GB, free: 9.211 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3698, allocations: 0.5711 MB / 0.4961 GB, free: 8.617 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.3703, allocations: 0.7755 MB / 0.4968 GB, free: 7.816 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001747/0.3705, allocations: 58.2 kB / 0.4969 GB, free: 7.758 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.823e-05/0.3705, allocations: 31.42 kB / 0.4969 GB, free: 7.727 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3705, allocations: 0 / 0.4969 GB, free: 7.727 MB / 378.7 MB Notification: Performance of Templates: time 0.008939/0.3795, allocations: 3.888 MB / 0.5007 GB, free: 3.859 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches