Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 198.2 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 226.6 MB / 244.3 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007618/0.0007619, allocations: 101.5 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002126, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1994, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001644/0.2011, allocations: 1.685 MB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2024, allocations: 1.197 MB / 410.4 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.202e-05/0.2025, allocations: 8.469 kB / 410.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005497/0.2031, allocations: 284.1 kB / 410.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003495/0.2034, allocations: 215.3 kB / 410.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.2039, allocations: 243.7 kB / 411.1 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002162/0.2041, allocations: 324 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.948e-05/0.2042, allocations: 48.47 kB / 411.5 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.2043, allocations: 123.4 kB / 411.6 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.2045, allocations: 139.4 kB / 411.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.2045, allocations: 4 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2046, allocations: 55.97 kB / 411.8 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.238e-05/0.2047, allocations: 79.72 kB / 411.9 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.442e-05/0.2047, allocations: 74.64 kB / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.2049, allocations: 268.3 kB / 412.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2049, allocations: 0 / 412.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.205, allocations: 4.5 kB / 412.2 MB, free: 23.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.205, allocations: 0 / 412.2 MB, free: 23.12 MB / 298.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.000577/0.2055, allocations: 0.6222 MB / 412.8 MB, free: 22.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.606e-05/0.2056, allocations: 8.031 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.774e-05/0.2056, allocations: 39.47 kB / 412.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.2059, allocations: 321.4 kB / 413.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2059, allocations: 12 kB / 413.2 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.206, allocations: 12 kB / 413.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002179/0.2062, allocations: 161.5 kB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2062, allocations: 0 / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.2062, allocations: 0 / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2062, allocations: 4 kB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.2064, allocations: 71.95 kB / 413.4 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004738/0.2069, allocations: 0.4925 MB / 413.9 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.2071, allocations: 134.7 kB / 414.1 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.871e-05/0.2072, allocations: 48.84 kB / 414.1 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.2073, allocations: 4 kB / 414.1 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.2074, allocations: 108.2 kB / 414.2 MB, free: 20.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2074, allocations: 0 / 414.2 MB, free: 20.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003622/0.2078, allocations: 219.8 kB / 414.4 MB, free: 20.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.2079, allocations: 114.8 kB / 414.5 MB, free: 20.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003431/0.2082, allocations: 449.7 kB / 415 MB, free: 20.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.2082, allocations: 37.69 kB / 415 MB, free: 20.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.226e-05/0.2083, allocations: 167.9 kB / 415.2 MB, free: 19.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.2083, allocations: 39.55 kB / 415.2 MB, free: 19.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-06/0.2083, allocations: 4 kB / 415.2 MB, free: 19.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.093e-05/0.2084, allocations: 338.8 kB / 415.6 MB, free: 19.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.099e-05/0.2085, allocations: 47.97 kB / 415.6 MB, free: 19.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.2086, allocations: 100.2 kB / 415.7 MB, free: 19.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.162e-05/0.2087, allocations: 51.86 kB / 415.8 MB, free: 19.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2087, allocations: 0 / 415.8 MB, free: 19.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002438/0.209, allocations: 177.2 kB / 415.9 MB, free: 19.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.209, allocations: 7.938 kB / 415.9 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.209, allocations: 7.953 kB / 415.9 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.886e-06/0.209, allocations: 0 / 415.9 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.77e-05/0.2091, allocations: 23.98 kB / 416 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2091, allocations: 0 / 416 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.399e-05/0.2092, allocations: 23.78 kB / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2092, allocations: 4 kB / 416 MB, free: 19.06 MB / 298.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.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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.0001077/0.2094, allocations: 175.6 kB / 416.2 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.206e-05/0.2094, allocations: 31.62 kB / 416.2 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.226e-05/0.2094, allocations: 34.97 kB / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2095, allocations: 7.938 kB / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.2095, allocations: 0 / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2095, allocations: 4 kB / 416.2 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/0.2096, allocations: 309.3 kB / 416.5 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2097, allocations: 4 kB / 416.5 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.548e-05/0.2097, allocations: 19.92 kB / 416.6 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2097, allocations: 0 / 416.6 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2097, allocations: 4 kB / 416.6 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.2097, allocations: 4 kB / 416.6 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2097, allocations: 3.953 kB / 416.6 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.21, allocations: 199.4 kB / 416.8 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.175e-05/0.2101, allocations: 112.7 kB / 416.9 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.2101, allocations: 8 kB / 416.9 MB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-05/0.2102, allocations: 11.98 kB / 416.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/0.2102, allocations: 19.94 kB / 416.9 MB, free: 18.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2103, allocations: 4 kB / 416.9 MB, free: 18.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002477/0.2105, allocations: 331.1 kB / 417.2 MB, free: 17.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2105, allocations: 0 / 417.2 MB, free: 17.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002292/0.2107, allocations: 55.91 kB / 417.3 MB, free: 17.65 MB / 298.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.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 (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.0007728/0.2115, allocations: 434.7 kB / 417.7 MB, free: 17.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002245/0.2118, allocations: 115.8 kB / 417.8 MB, free: 17.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2118, allocations: 0 / 417.8 MB, free: 17.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.2119, allocations: 63.91 kB / 417.9 MB, free: 17.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2122, allocations: 73.12 kB / 418 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005665/0.2128, allocations: 0.5717 MB / 418.5 MB, free: 16.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.213, allocations: 0.7835 MB / 419.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.213, allocations: 23.44 kB / 419.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.213, allocations: 4 kB / 419.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of Templates: time 0.004475/0.2175, allocations: 4.222 MB / 423.6 MB, free: 11.46 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches