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.002571/0.00257, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.509/3.509, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001856/0.001856, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006242/0.0006245, allocations: 12 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1779, allocations: 47.56 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004691/0.1827, allocations: 1.646 MB / 376.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.1869, allocations: 0.9448 MB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.1873, allocations: 4 kB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.1891, allocations: 271.3 kB / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.1903, allocations: 163.6 kB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.1922, allocations: 227.4 kB / 377.8 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008642/0.1931, allocations: 207.6 kB / 378 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/0.1934, allocations: 52.55 kB / 378 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.194, allocations: 119.5 kB / 378.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003617/0.1943, allocations: 115.5 kB / 378.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.909e-05/0.1944, allocations: 8 kB / 378.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003849/0.1948, allocations: 55.83 kB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.1951, allocations: 71.8 kB / 378.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.1953, allocations: 69.52 kB / 378.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007625/0.1961, allocations: 255.6 kB / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1961, allocations: 0 / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.1961, allocations: 4 kB / 378.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.1962, allocations: 0 / 378.7 MB, free: 11.24 MB / 282.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.001982/0.1982, allocations: 0.6066 MB / 379.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.295e-05/0.1983, allocations: 12.03 kB / 379.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1985, allocations: 27.62 kB / 379.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.1996, allocations: 322.9 kB / 379.7 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.1997, allocations: 8 kB / 379.7 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.085e-05/0.1998, allocations: 15.98 kB / 379.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007046/0.2005, allocations: 140.1 kB / 379.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.2005, allocations: 0 / 379.8 MB, free: 10.01 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.2006, allocations: 11.98 kB / 379.8 MB, free: 9.996 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.2007, allocations: 0 / 379.8 MB, free: 9.996 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004399/0.2011, allocations: 67.83 kB / 379.9 MB, free: 9.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.203, allocations: 0.5003 MB / 380.4 MB, free: 9.379 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008737/0.2039, allocations: 134.7 kB / 380.5 MB, free: 9.238 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.277e-05/0.204, allocations: 4 kB / 380.5 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005538/0.2046, allocations: 112.2 kB / 380.6 MB, free: 9.113 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 5.17e-06/0.2046, allocations: 0 / 380.6 MB, free: 9.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.00139/0.206, allocations: 214.5 kB / 380.9 MB, free: 8.898 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.2062, allocations: 114.8 kB / 381 MB, free: 8.762 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.2076, allocations: 428.4 kB / 381.4 MB, free: 8.328 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.624e-05/0.2077, allocations: 29.7 kB / 381.4 MB, free: 8.293 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.208, allocations: 218.3 kB / 381.6 MB, free: 8.078 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.2081, allocations: 43.44 kB / 381.7 MB, free: 8.035 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.131e-05/0.2082, allocations: 4 kB / 381.7 MB, free: 8.031 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.2084, allocations: 314.8 kB / 382 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.2088, allocations: 43.97 kB / 382 MB, free: 7.672 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004081/0.2092, allocations: 97.98 kB / 382.1 MB, free: 7.555 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.2096, allocations: 47.98 kB / 382.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.2096, allocations: 0 / 382.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0008404/0.2105, allocations: 158 kB / 382.3 MB, free: 7.348 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.2105, allocations: 11.98 kB / 382.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.2106, allocations: 0 / 382.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.2106, allocations: 0 / 382.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003258/0.211, allocations: 23.94 kB / 382.4 MB, free: 7.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.211, allocations: 7.922 kB / 382.4 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.2114, allocations: 23.84 kB / 382.4 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.2115, allocations: 4 kB / 382.4 MB, free: 7.277 MB / 282.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.0004316/0.2119, allocations: 171.6 kB / 382.6 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.2121, allocations: 35.58 kB / 382.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.2122, allocations: 34.94 kB / 382.6 MB, free: 7.031 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.2123, allocations: 0 / 382.6 MB, free: 7.031 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.2123, allocations: 0 / 382.6 MB, free: 7.031 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/0.2123, allocations: 4 kB / 382.6 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006486/0.213, allocations: 297.4 kB / 382.9 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.2131, allocations: 0 / 382.9 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.2132, allocations: 11.98 kB / 382.9 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.311e-05/0.2133, allocations: 7.953 kB / 382.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.2133, allocations: 8 kB / 382.9 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.2133, allocations: 0 / 382.9 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2134, allocations: 0 / 382.9 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2144, allocations: 200.6 kB / 383.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.2147, allocations: 112.8 kB / 383.3 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.2148, allocations: 11.95 kB / 383.3 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.2151, allocations: 15.98 kB / 383.3 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.2153, allocations: 11.98 kB / 383.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.036e-05/0.2153, allocations: 8 kB / 383.3 MB, free: 6.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009696/0.2163, allocations: 311 kB / 383.6 MB, free: 5.969 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.2164, allocations: 3.938 kB / 383.6 MB, free: 5.965 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007863/0.2172, allocations: 55.89 kB / 383.7 MB, free: 5.91 MB / 282.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.002209/0.2194, allocations: 422.1 kB / 384.1 MB, free: 5.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008875/0.2204, allocations: 119.8 kB / 384.2 MB, free: 5.383 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.2204, allocations: 0 / 384.2 MB, free: 5.383 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.2208, allocations: 55.92 kB / 384.2 MB, free: 5.328 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.2219, allocations: 62.25 kB / 384.3 MB, free: 5.266 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.2241, allocations: 0.5521 MB / 384.9 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007193/0.2249, allocations: 0.799 MB / 385.7 MB, free: 3.855 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000219/0.2252, allocations: 23.44 kB / 385.7 MB, free: 3.832 MB / 282.7 MB Notification: Performance of SimCode: time 1.994e-06/0.2252, allocations: 0 / 385.7 MB, free: 3.832 MB / 282.7 MB Notification: Performance of Templates: time 0.3869/0.6122, allocations: 4.111 MB / 389.8 MB, free: 19.18 MB / 282.7 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