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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 103.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 64.33 kB / 306.9 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1484, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004908/0.1534, allocations: 2.035 MB / 359.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.1566, allocations: 1.267 MB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.1568, allocations: 0 / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.158, allocations: 311.1 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008422/0.1589, allocations: 255.1 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008422/0.1598, allocations: 222.7 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005567/0.1603, allocations: 363.2 kB / 361.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.1606, allocations: 56.7 kB / 361.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.1608, allocations: 147.4 kB / 362.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.1611, allocations: 151.4 kB / 362.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.427e-05/0.1612, allocations: 20 kB / 362.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000274/0.1614, allocations: 75.95 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.1616, allocations: 91.67 kB / 362.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.1618, allocations: 131.2 kB / 362.5 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005422/0.1624, allocations: 355.1 kB / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1624, allocations: 0 / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1624, allocations: 0 / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1624, allocations: 4 kB / 362.9 MB, free: 8.66 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.001298/0.1637, allocations: 0.6727 MB / 363.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1638, allocations: 8.031 kB / 363.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.1639, allocations: 36.47 kB / 363.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005704/0.1645, allocations: 342.3 kB / 363.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.1645, allocations: 8.375 kB / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.018e-05/0.1646, allocations: 24.05 kB / 364 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004059/0.165, allocations: 148.1 kB / 364.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.165, allocations: 0 / 364.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.1651, allocations: 3.984 kB / 364.1 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1651, allocations: 4 kB / 364.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.1653, allocations: 71.91 kB / 364.2 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.1664, allocations: 492.4 kB / 364.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004417/0.1668, allocations: 138.7 kB / 364.8 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.167, allocations: 52.84 kB / 364.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.173e-05/0.167, allocations: 7.969 kB / 364.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.1674, allocations: 115.2 kB / 365 MB, free: 6.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.1674, allocations: 3.938 kB / 365 MB, free: 6.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007116/0.1681, allocations: 220.1 kB / 365.2 MB, free: 6.152 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/0.1682, allocations: 110.8 kB / 365.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.169, allocations: 453.7 kB / 365.8 MB, free: 5.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.169, allocations: 29.7 kB / 365.8 MB, free: 5.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.1692, allocations: 175.8 kB / 366 MB, free: 5.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.1693, allocations: 35.55 kB / 366 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.443e-05/0.1694, allocations: 41.7 kB / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1696, allocations: 350.8 kB / 366.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.1697, allocations: 35.98 kB / 366.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.17, allocations: 108.3 kB / 366.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.1703, allocations: 102.5 kB / 366.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1703, allocations: 0 / 366.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004763/0.1708, allocations: 177.2 kB / 366.8 MB, free: 4.473 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1708, allocations: 10.91 kB / 366.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.1708, allocations: 4 kB / 366.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.1709, allocations: 0 / 366.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.1711, allocations: 31.92 kB / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.1711, allocations: 0 / 366.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.1713, allocations: 15.84 kB / 366.9 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.1713, allocations: 11.98 kB / 366.9 MB, free: 4.402 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.0002291/0.1715, allocations: 179.5 kB / 367 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-05/0.1716, allocations: 31.56 kB / 367.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.713e-05/0.1717, allocations: 38.91 kB / 367.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1718, allocations: 4 kB / 367.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.1718, allocations: 3.984 kB / 367.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1718, allocations: 0 / 367.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003594/0.1722, allocations: 305.3 kB / 367.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1722, allocations: 4 kB / 367.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-05/0.1722, allocations: 11.98 kB / 367.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.1722, allocations: 11.94 kB / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.1723, allocations: 0 / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.1723, allocations: 4 kB / 367.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1723, allocations: 0 / 367.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004593/0.1727, allocations: 211.3 kB / 367.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.1729, allocations: 100.7 kB / 367.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.171e-05/0.173, allocations: 15.92 kB / 367.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.1731, allocations: 12 kB / 367.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.073e-05/0.1732, allocations: 11.98 kB / 367.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.908e-05/0.1732, allocations: 11.98 kB / 367.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00047/0.1737, allocations: 331.1 kB / 368.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1737, allocations: 0 / 368.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004527/0.1742, allocations: 47.94 kB / 368.2 MB, free: 2.992 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.001314/0.1755, allocations: 429.3 kB / 368.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004163/0.1759, allocations: 131.2 kB / 368.7 MB, free: 2.578 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1759, allocations: 0 / 368.7 MB, free: 2.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.1761, allocations: 59.91 kB / 368.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.1767, allocations: 69.53 kB / 368.8 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.1778, allocations: 0.511 MB / 369.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.1783, allocations: 0.7753 MB / 370.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.1785, allocations: 46.25 kB / 370.2 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.1786, allocations: 31.44 kB / 370.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1786, allocations: 0 / 370.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of Templates: time 0.2085/0.3871, allocations: 3.887 MB / 374.1 MB, free: 19.67 MB / 302.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches