Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001022/0.001023, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.175/1.175, allocations: 205.1 MB / 223.7 MB, free: 8.477 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.0009366/0.0009366, allocations: 100.4 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007757/0.0007758, allocations: 36.08 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1768, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003144/0.18, allocations: 2.043 MB / 375.9 MB, free: 44.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.1814, allocations: 1.045 MB / 376.9 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1816, allocations: 2.469 kB / 376.9 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007016/0.1823, allocations: 281.8 kB / 377.2 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003521/0.1826, allocations: 192.2 kB / 377.4 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.1832, allocations: 243.3 kB / 377.6 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.1835, allocations: 339.6 kB / 377.9 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1836, allocations: 62.7 kB / 378 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1837, allocations: 124.2 kB / 378.1 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.1839, allocations: 145.2 kB / 378.3 MB, free: 42.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.1839, allocations: 9 kB / 378.3 MB, free: 42.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.184, allocations: 66.05 kB / 378.3 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.788e-05/0.1841, allocations: 73.62 kB / 378.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.497e-05/0.1842, allocations: 118.5 kB / 378.5 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1845, allocations: 334.5 kB / 378.8 MB, free: 42.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1845, allocations: 4 kB / 378.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1845, allocations: 1.25 kB / 378.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.1845, allocations: 0 / 378.8 MB, free: 42.2 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.0006902/0.1852, allocations: 0.6594 MB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.1853, allocations: 10.06 kB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.1853, allocations: 32.22 kB / 379.6 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.1856, allocations: 328.9 kB / 379.9 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1856, allocations: 4.719 kB / 379.9 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.1857, allocations: 15.81 kB / 379.9 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.1859, allocations: 151.7 kB / 380 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.1859, allocations: 0 / 380 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.1859, allocations: 6.25 kB / 380 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1859, allocations: 2.25 kB / 380 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.1861, allocations: 72.06 kB / 380.1 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005013/0.1866, allocations: 497.7 kB / 380.6 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.1869, allocations: 135.6 kB / 380.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.336e-05/0.187, allocations: 52.95 kB / 380.8 MB, free: 40.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.187, allocations: 6.125 kB / 380.8 MB, free: 40.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.1872, allocations: 116.7 kB / 380.9 MB, free: 40.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.1872, allocations: 0 / 380.9 MB, free: 40.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.000401/0.1876, allocations: 219.4 kB / 381.1 MB, free: 40.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.1876, allocations: 105.2 kB / 381.2 MB, free: 40.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003589/0.188, allocations: 429.5 kB / 381.6 MB, free: 39.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.188, allocations: 35.86 kB / 381.7 MB, free: 39.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.1881, allocations: 172.6 kB / 381.8 MB, free: 39.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.1881, allocations: 34.22 kB / 381.9 MB, free: 39.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.1882, allocations: 50.5 kB / 381.9 MB, free: 39.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.1883, allocations: 338.5 kB / 382.3 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.343e-05/0.1884, allocations: 46.41 kB / 382.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.1885, allocations: 100.7 kB / 382.4 MB, free: 39.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.1886, allocations: 104.5 kB / 382.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1887, allocations: 1.719 kB / 382.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002586/0.1889, allocations: 183.5 kB / 382.7 MB, free: 39.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.1889, allocations: 12.69 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.189, allocations: 1.406 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.189, allocations: 1.312 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1891, allocations: 25.8 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1891, allocations: 1.531 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.055e-05/0.1892, allocations: 22.52 kB / 382.8 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.1892, allocations: 4.656 kB / 382.8 MB, free: 39.03 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 ($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.0001066/0.1893, allocations: 169.7 kB / 382.9 MB, free: 38.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.733e-05/0.1894, allocations: 33.41 kB / 383 MB, free: 38.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.1894, allocations: 35.86 kB / 383 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1894, allocations: 6.203 kB / 383 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1894, allocations: 0 / 383 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.1894, allocations: 0 / 383 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.1896, allocations: 297.5 kB / 383.3 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1896, allocations: 0 / 383.3 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.311e-05/0.1897, allocations: 10.62 kB / 383.3 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1897, allocations: 4.875 kB / 383.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1897, allocations: 6.328 kB / 383.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1897, allocations: 5.156 kB / 383.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1897, allocations: 0 / 383.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004882/0.1902, allocations: 0.8493 MB / 384.2 MB, free: 37.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.963e-05/0.1903, allocations: 105.6 kB / 384.3 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1903, allocations: 10.75 kB / 384.3 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.489e-05/0.1904, allocations: 15.8 kB / 384.3 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.1904, allocations: 14.52 kB / 384.3 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.1905, allocations: 12.67 kB / 384.3 MB, free: 37.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002598/0.1907, allocations: 312.4 kB / 384.6 MB, free: 37.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1907, allocations: 0 / 384.6 MB, free: 37.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003505/0.1911, allocations: 52.95 kB / 384.7 MB, free: 37.42 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 (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.0007452/0.1918, allocations: 409.1 kB / 385.1 MB, free: 37.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002408/0.1921, allocations: 132.4 kB / 385.2 MB, free: 37.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1921, allocations: 1.094 kB / 385.2 MB, free: 37.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.1922, allocations: 55.67 kB / 385.3 MB, free: 37.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.1926, allocations: 84.45 kB / 385.3 MB, free: 36.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.1933, allocations: 0.7045 MB / 386 MB, free: 36.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.1934, allocations: 0.7812 MB / 386.8 MB, free: 35.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.1936, allocations: 43.16 kB / 386.9 MB, free: 35.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.48e-05/0.1936, allocations: 35.3 kB / 386.9 MB, free: 35.64 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1936, allocations: 0 / 386.9 MB, free: 35.64 MB / 298.7 MB Notification: Performance of Templates: time 0.005431/0.1991, allocations: 3.724 MB / 390.6 MB, free: 32.21 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches