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.001113/0.001118, allocations: 104.2 kB / 17.59 MB, free: 5.43 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.00119/0.00119, allocations: 187.3 kB / 18.51 MB, free: 4.508 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.344/1.344, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001703, allocations: 47.02 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1392, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005204/0.1445, allocations: 1.993 MB / 352.7 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.1477, allocations: 1.126 MB / 353.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.1479, allocations: 7.938 kB / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.1492, allocations: 308.8 kB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007463/0.15, allocations: 203.2 kB / 354.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.1513, allocations: 289.9 kB / 354.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005898/0.1519, allocations: 339.2 kB / 355 MB, free: 168 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.1521, allocations: 64.31 kB / 355 MB, free: 100 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.1525, allocations: 139.6 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.1528, allocations: 147.3 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.806e-05/0.1528, allocations: 16 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.1531, allocations: 79.89 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.1533, allocations: 83.75 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002015/0.1535, allocations: 123.2 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.1542, allocations: 347.1 kB / 355.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1542, allocations: 0 / 355.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1542, allocations: 0 / 355.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.1542, allocations: 4 kB / 355.9 MB, free: 15.18 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.001425/0.1557, allocations: 0.6572 MB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.1557, allocations: 8.031 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.1559, allocations: 32.56 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006336/0.1565, allocations: 331.9 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.1566, allocations: 11.94 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.1566, allocations: 12 kB / 357 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/0.1571, allocations: 160 kB / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1571, allocations: 0 / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.1572, allocations: 0 / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1572, allocations: 4 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.1575, allocations: 71.61 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.1586, allocations: 496.3 kB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005328/0.1591, allocations: 126.8 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.1593, allocations: 60.77 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.1594, allocations: 3.984 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.1598, allocations: 115.3 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 3.146e-06/0.1598, allocations: 0 / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008452/0.1606, allocations: 212.3 kB / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1608, allocations: 110.8 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007866/0.1616, allocations: 436.5 kB / 358.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.1616, allocations: 33.7 kB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.1618, allocations: 163.9 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.1619, allocations: 39.55 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.162, allocations: 41.7 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.1622, allocations: 342.8 kB / 359.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.1624, allocations: 43.94 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.1627, allocations: 106 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.1631, allocations: 106.4 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1631, allocations: 0 / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005385/0.1636, allocations: 185.1 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1637, allocations: 4 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.1637, allocations: 4 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.1637, allocations: 0 / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.1639, allocations: 19.98 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.164, allocations: 4 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.1642, allocations: 27.77 kB / 359.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.1642, allocations: 4 kB / 359.8 MB, free: 10.99 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.0002532/0.1645, allocations: 171.6 kB / 360 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.558e-05/0.1646, allocations: 35.56 kB / 360 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.1647, allocations: 38.92 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1647, allocations: 0 / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1647, allocations: 0 / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1648, allocations: 4 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.1652, allocations: 293.4 kB / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.1652, allocations: 7.938 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.1653, allocations: 7.938 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.1653, allocations: 4 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.1654, allocations: 8 kB / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1654, allocations: 0 / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1654, allocations: 3.984 kB / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006061/0.166, allocations: 195.5 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.1662, allocations: 112.6 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.913e-05/0.1662, allocations: 8 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.1664, allocations: 15.98 kB / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.705e-05/0.1665, allocations: 12.03 kB / 360.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.1666, allocations: 15.92 kB / 360.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005443/0.1671, allocations: 311 kB / 361.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1671, allocations: 0 / 361.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005251/0.1677, allocations: 52 kB / 361.1 MB, free: 9.629 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.001683/0.1694, allocations: 438.3 kB / 361.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005798/0.17, allocations: 131.8 kB / 361.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.17, allocations: 0 / 361.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.1702, allocations: 59.92 kB / 361.7 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007217/0.171, allocations: 72.83 kB / 361.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.1723, allocations: 0.5255 MB / 362.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.1728, allocations: 0.7753 MB / 363.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.173, allocations: 31.42 kB / 363.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.173, allocations: 0 / 363.1 MB, free: 7.703 MB / 302.1 MB Notification: Performance of Templates: time 0.01139/0.1844, allocations: 4.166 MB / 367.3 MB, free: 3.555 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