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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001865/0.001864, allocations: 108.3 kB / 17.16 MB, free: 6.324 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.002474/0.002474, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.895/1.895, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001994, allocations: 50.45 kB / 300.6 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1519, allocations: 49.45 MB / 350.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005347/0.1573, allocations: 2.043 MB / 352.1 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.1605, allocations: 1.119 MB / 353.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.1607, allocations: 4 kB / 353.2 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.1622, allocations: 295.3 kB / 353.5 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000767/0.1629, allocations: 187.5 kB / 353.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.1641, allocations: 257.7 kB / 353.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006008/0.1647, allocations: 343.1 kB / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.165, allocations: 56.38 kB / 354.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.1653, allocations: 123.4 kB / 354.4 MB, free: 476 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.1656, allocations: 143.4 kB / 354.6 MB, free: 332 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.75e-05/0.1657, allocations: 12 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.166, allocations: 55.97 kB / 354.7 MB, free: 264 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.1662, allocations: 91.66 kB / 354.7 MB, free: 172 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.1664, allocations: 111.2 kB / 354.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005044/0.1669, allocations: 259.8 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.1669, allocations: 4 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.167, allocations: 0 / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.167, allocations: 0 / 355.1 MB, free: 15.8 MB / 302.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.001487/0.1685, allocations: 0.661 MB / 355.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.1685, allocations: 12.03 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.1687, allocations: 36.56 kB / 355.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006386/0.1693, allocations: 331.9 kB / 356.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.1694, allocations: 11.94 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.1694, allocations: 12 kB / 356.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.1699, allocations: 148 kB / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.17, allocations: 0 / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.17, allocations: 0 / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.17, allocations: 4 kB / 356.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002776/0.1703, allocations: 75.95 kB / 356.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.1714, allocations: 492.2 kB / 356.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006304/0.172, allocations: 142.6 kB / 357 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.1723, allocations: 44.83 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.1723, allocations: 8 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004089/0.1728, allocations: 107.3 kB / 357.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.594e-06/0.1728, allocations: 7.938 kB / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009883/0.1738, allocations: 220.7 kB / 357.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.1739, allocations: 106.8 kB / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007832/0.1747, allocations: 424.5 kB / 357.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.1748, allocations: 29.7 kB / 357.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.175, allocations: 171.9 kB / 358.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.1751, allocations: 31.56 kB / 358.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.1752, allocations: 45.7 kB / 358.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.1754, allocations: 350.8 kB / 358.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.1757, allocations: 39.94 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.176, allocations: 108.5 kB / 358.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004007/0.1764, allocations: 106.5 kB / 358.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1764, allocations: 0 / 358.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006317/0.1771, allocations: 177.2 kB / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.1771, allocations: 4 kB / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1771, allocations: 0 / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.1772, allocations: 4 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.1774, allocations: 27.92 kB / 359 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.1774, allocations: 12.05 kB / 359 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.1776, allocations: 15.83 kB / 359 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.1776, allocations: 12 kB / 359 MB, free: 11.61 MB / 302.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.0002718/0.1779, allocations: 163.5 kB / 359.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.937e-05/0.178, allocations: 39.55 kB / 359.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.1782, allocations: 34.94 kB / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1782, allocations: 0 / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.1782, allocations: 4 kB / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1782, allocations: 4 kB / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004572/0.1787, allocations: 301.4 kB / 359.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.1787, allocations: 3.938 kB / 359.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.053e-05/0.1788, allocations: 8.047 kB / 359.6 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/0.1788, allocations: 3.984 kB / 359.6 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.1789, allocations: 11.92 kB / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1789, allocations: 0 / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1789, allocations: 0 / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.1796, allocations: 202.9 kB / 359.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.1797, allocations: 120.5 kB / 359.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.033e-05/0.1798, allocations: 0 / 359.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.18, allocations: 15.98 kB / 359.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.18, allocations: 7.984 kB / 359.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.1801, allocations: 12 kB / 359.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005493/0.1806, allocations: 311 kB / 360.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1807, allocations: 0 / 360.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005165/0.1812, allocations: 56 kB / 360.3 MB, free: 10.24 MB / 302.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.001668/0.1829, allocations: 423.6 kB / 360.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005731/0.1835, allocations: 123.8 kB / 360.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1835, allocations: 0 / 360.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.1838, allocations: 59.92 kB / 360.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008007/0.1846, allocations: 81.31 kB / 361 MB, free: 9.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.1862, allocations: 0.5818 MB / 361.5 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.1867, allocations: 0.7716 MB / 362.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.1869, allocations: 31.42 kB / 362.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.1869, allocations: 0 / 362.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of Templates: time 0.01219/0.1991, allocations: 4.166 MB / 366.5 MB, free: 4.137 MB / 302.1 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/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