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.001815/0.001815, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.461/1.461, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.001054/0.001054, allocations: 91.86 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004523, allocations: 8 kB / 327.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2086, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001858/0.2105, allocations: 1.641 MB / 376.7 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.2118, allocations: 0.9909 MB / 377.7 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.212, allocations: 6.25 kB / 377.7 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006422/0.2126, allocations: 275.9 kB / 378 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.213, allocations: 178 kB / 378.2 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.2135, allocations: 216.4 kB / 378.4 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.2137, allocations: 303.2 kB / 378.7 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.2139, allocations: 58.53 kB / 378.7 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.214, allocations: 121.6 kB / 378.8 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.2142, allocations: 128.5 kB / 379 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.2142, allocations: 5.594 kB / 379 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.2143, allocations: 58.94 kB / 379 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.783e-05/0.2144, allocations: 77.47 kB / 379.1 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.107e-05/0.2145, allocations: 130 kB / 379.2 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.2148, allocations: 257.5 kB / 379.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2148, allocations: 0 / 379.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2148, allocations: 0 / 379.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2148, allocations: 0 / 379.5 MB, free: 42.29 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.0006452/0.2154, allocations: 0.6151 MB / 380.1 MB, free: 41.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.2155, allocations: 13.41 kB / 380.1 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.528e-05/0.2155, allocations: 35.69 kB / 380.1 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.2159, allocations: 326 kB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.2159, allocations: 5.219 kB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.2159, allocations: 20.16 kB / 380.5 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.2162, allocations: 148.1 kB / 380.6 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.2162, allocations: 0 / 380.6 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.2162, allocations: 5.312 kB / 380.6 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2162, allocations: 2.656 kB / 380.6 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.2164, allocations: 74.97 kB / 380.7 MB, free: 41.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005243/0.2169, allocations: 0.489 MB / 381.2 MB, free: 40.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.2172, allocations: 130.4 kB / 381.3 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.554e-05/0.2173, allocations: 52.08 kB / 381.4 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.2173, allocations: 2.125 kB / 381.4 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.2175, allocations: 112.4 kB / 381.5 MB, free: 40.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.2175, allocations: 0 / 381.5 MB, free: 40.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004119/0.2179, allocations: 222.1 kB / 381.7 MB, free: 40.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.218, allocations: 104.2 kB / 381.8 MB, free: 40.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.2184, allocations: 431.5 kB / 382.2 MB, free: 40.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.2184, allocations: 32.27 kB / 382.3 MB, free: 40.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.2185, allocations: 168.2 kB / 382.4 MB, free: 39.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.2185, allocations: 42.3 kB / 382.5 MB, free: 39.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/0.2185, allocations: 5.031 kB / 382.5 MB, free: 39.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.305e-05/0.2186, allocations: 338.9 kB / 382.8 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.626e-05/0.2187, allocations: 46.28 kB / 382.9 MB, free: 39.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.2188, allocations: 99.8 kB / 383 MB, free: 39.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.219, allocations: 104.8 kB / 383.1 MB, free: 39.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.219, allocations: 0 / 383.1 MB, free: 39.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002621/0.2193, allocations: 175.2 kB / 383.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.2193, allocations: 9.312 kB / 383.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2193, allocations: 1.062 kB / 383.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2193, allocations: 1.156 kB / 383.2 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.2194, allocations: 30.2 kB / 383.3 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.2195, allocations: 6.891 kB / 383.3 MB, free: 39.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.633e-05/0.2196, allocations: 24.52 kB / 383.3 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.2196, allocations: 8.688 kB / 383.3 MB, free: 39.17 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.0001167/0.2197, allocations: 172.6 kB / 383.5 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.2197, allocations: 29.59 kB / 383.5 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.2198, allocations: 39.94 kB / 383.5 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2198, allocations: 5.25 kB / 383.5 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2198, allocations: 5.219 kB / 383.6 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2198, allocations: 0 / 383.6 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.22, allocations: 296.7 kB / 383.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.22, allocations: 0 / 383.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.538e-05/0.2201, allocations: 11.28 kB / 383.9 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.2201, allocations: 5.344 kB / 383.9 MB, free: 38.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.2201, allocations: 5.297 kB / 383.9 MB, free: 38.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.2201, allocations: 1.438 kB / 383.9 MB, free: 38.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2201, allocations: 0 / 383.9 MB, free: 38.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.2204, allocations: 209.9 kB / 384.1 MB, free: 38.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/0.2205, allocations: 114.2 kB / 384.2 MB, free: 38.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.2205, allocations: 10.38 kB / 384.2 MB, free: 38.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-05/0.2206, allocations: 10.64 kB / 384.2 MB, free: 38.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.2206, allocations: 14.64 kB / 384.2 MB, free: 38.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.2207, allocations: 4.344 kB / 384.2 MB, free: 38.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002739/0.2209, allocations: 318 kB / 384.5 MB, free: 38.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.221, allocations: 0 / 384.5 MB, free: 38.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002559/0.2212, allocations: 52.98 kB / 384.6 MB, free: 38.2 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.000754/0.222, allocations: 425.6 kB / 385 MB, free: 37.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002517/0.2222, allocations: 122.7 kB / 385.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2223, allocations: 1.625 kB / 385.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.2224, allocations: 61.83 kB / 385.2 MB, free: 37.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.2227, allocations: 71.36 kB / 385.2 MB, free: 37.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006546/0.2234, allocations: 0.5626 MB / 385.8 MB, free: 37.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.2236, allocations: 0.7747 MB / 386.6 MB, free: 36.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.221e-05/0.2237, allocations: 29.67 kB / 386.6 MB, free: 36.56 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2237, allocations: 4 kB / 386.6 MB, free: 36.56 MB / 298.7 MB Notification: Performance of Templates: time 0.00456/0.2282, allocations: 4.115 MB / 390.7 MB, free: 32.64 MB / 298.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/jenkins/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