Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002513/0.002513, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.048/2.048, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 94.98 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.097e-05/2.106e-05, allocations: 4 kB / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3312, allocations: 47.56 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.4558, allocations: 78.27 MB / 440.6 MB, free: 8.059 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.4561, allocations: 71.97 kB / 440.7 MB, free: 7.988 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04125/0.4973, allocations: 8.925 MB / 449.6 MB, free: 15.12 MB / 347.1 MB Notification: Performance of FrontEnd: time 4.429e-06/0.4974, allocations: 0 / 449.6 MB, free: 15.12 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.35e-05/0.4975, allocations: 15.92 kB / 449.6 MB, free: 15.11 MB / 347.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.001082/0.4986, allocations: 0.5736 MB / 450.2 MB, free: 14.48 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.4986, allocations: 8.031 kB / 450.2 MB, free: 14.47 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.4988, allocations: 31.62 kB / 450.2 MB, free: 14.44 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008314/0.4996, allocations: 343.7 kB / 450.5 MB, free: 14.07 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.4996, allocations: 4 kB / 450.5 MB, free: 14.06 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.4997, allocations: 8 kB / 450.6 MB, free: 14.05 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002254/0.4999, allocations: 67.94 kB / 450.6 MB, free: 13.99 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/0.5003, allocations: 128.2 kB / 450.7 MB, free: 13.85 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.5003, allocations: 4 kB / 450.8 MB, free: 13.84 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.5003, allocations: 3.984 kB / 450.8 MB, free: 13.84 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.5003, allocations: 0 / 450.8 MB, free: 13.84 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.5014, allocations: 492.9 kB / 451.2 MB, free: 13.32 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.5018, allocations: 120.8 kB / 451.4 MB, free: 13.2 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.5019, allocations: 48.84 kB / 451.4 MB, free: 13.14 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.5019, allocations: 0 / 451.4 MB, free: 13.14 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.5022, allocations: 111.3 kB / 451.5 MB, free: 13.02 MB / 347.1 MB Notification: Performance of pre-optimization done (n=15): time 2.034e-06/0.5023, allocations: 0 / 451.5 MB, free: 13.02 MB / 347.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004982/0.5028, allocations: 161.2 kB / 451.7 MB, free: 12.86 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.5028, allocations: 102.8 kB / 451.8 MB, free: 12.73 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007275/0.5036, allocations: 377 kB / 452.1 MB, free: 12.36 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.5036, allocations: 33.7 kB / 452.2 MB, free: 12.32 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.5038, allocations: 206.5 kB / 452.4 MB, free: 12.12 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.098e-05/0.5039, allocations: 35.55 kB / 452.4 MB, free: 12.09 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.129e-05/0.5039, allocations: 0 / 452.4 MB, free: 12.09 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.5041, allocations: 326.8 kB / 452.7 MB, free: 11.76 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.5042, allocations: 36 kB / 452.8 MB, free: 11.72 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.5044, allocations: 97.98 kB / 452.9 MB, free: 11.61 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.5046, allocations: 43.92 kB / 452.9 MB, free: 11.56 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.5046, allocations: 0 / 452.9 MB, free: 11.56 MB / 347.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003759/0.505, allocations: 145.1 kB / 453 MB, free: 11.42 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.505, allocations: 4 kB / 453 MB, free: 11.41 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.505, allocations: 1.031 kB / 453 MB, free: 11.41 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.5051, allocations: 4 kB / 453.1 MB, free: 11.41 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.5053, allocations: 23.98 kB / 453.1 MB, free: 11.39 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.5053, allocations: 11.95 kB / 453.1 MB, free: 11.38 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.5056, allocations: 15.91 kB / 453.1 MB, free: 11.36 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.5056, allocations: 4 kB / 453.1 MB, free: 11.36 MB / 347.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 ($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 () * 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.0001402/0.5058, allocations: 118.6 kB / 453.2 MB, free: 11.23 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.372e-05/0.5059, allocations: 31.62 kB / 453.3 MB, free: 11.2 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005349/0.5064, allocations: 176.4 kB / 453.4 MB, free: 11.02 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.5064, allocations: 4 kB / 453.4 MB, free: 11.02 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5064, allocations: 7.938 kB / 453.4 MB, free: 11.01 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.5065, allocations: 4.891 kB / 453.4 MB, free: 11 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004398/0.5069, allocations: 285.9 kB / 453.7 MB, free: 10.69 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.5069, allocations: 4 kB / 453.7 MB, free: 10.68 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.833e-05/0.507, allocations: 12 kB / 453.7 MB, free: 10.67 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.5071, allocations: 0 / 453.7 MB, free: 10.67 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.5071, allocations: 7.984 kB / 453.7 MB, free: 10.66 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.5071, allocations: 0 / 453.7 MB, free: 10.66 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.5071, allocations: 0 / 453.7 MB, free: 10.66 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.5076, allocations: 200.6 kB / 453.9 MB, free: 10.45 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.5078, allocations: 124.7 kB / 454.1 MB, free: 10.31 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.104e-05/0.5079, allocations: 5.828 kB / 454.1 MB, free: 10.3 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.5081, allocations: 23.91 kB / 454.1 MB, free: 10.28 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.5081, allocations: 11.98 kB / 454.1 MB, free: 10.27 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.5082, allocations: 4 kB / 454.1 MB, free: 10.27 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0005546/0.5087, allocations: 300.6 kB / 454.4 MB, free: 9.969 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5088, allocations: 0 / 454.4 MB, free: 9.969 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004697/0.5092, allocations: 60.19 kB / 454.5 MB, free: 9.91 MB / 347.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.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) * 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.001164/0.5104, allocations: 367.5 kB / 454.8 MB, free: 9.59 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.5109, allocations: 115.9 kB / 454.9 MB, free: 9.477 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5109, allocations: 0 / 454.9 MB, free: 9.477 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.5111, allocations: 68.05 kB / 455 MB, free: 9.41 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006302/0.5117, allocations: 61.06 kB / 455.1 MB, free: 9.352 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.5128, allocations: 421.2 kB / 455.5 MB, free: 8.91 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.5133, allocations: 0.7873 MB / 456.3 MB, free: 8.094 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.5135, allocations: 23.44 kB / 456.3 MB, free: 8.07 MB / 347.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5135, allocations: 4 kB / 456.3 MB, free: 8.066 MB / 347.1 MB Notification: Performance of Templates: time 0.01146/0.525, allocations: 4.257 MB / 460.5 MB, free: 3.824 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches