Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 143.2 kB / 24.89 MB, free: 8.789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9562/0.9562, allocations: 173.4 MB / 201.5 MB, free: 8.242 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 268.5 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.369e-05/1.512e-05, allocations: 4.984 kB / 268.5 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002353/0.002368, allocations: 2.008 MB / 270.5 MB, free: 7.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.003881, allocations: 1.125 MB / 271.6 MB, free: 6.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.004006, allocations: 7.938 kB / 271.6 MB, free: 6.66 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006779/0.004684, allocations: 302.5 kB / 271.9 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.005015, allocations: 214.5 kB / 272.1 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.005551, allocations: 288.1 kB / 272.4 MB, free: 5.879 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003837/0.005935, allocations: 351 kB / 272.7 MB, free: 5.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.006045, allocations: 47.06 kB / 272.8 MB, free: 5.488 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.006233, allocations: 175.6 kB / 272.9 MB, free: 5.316 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.006373, allocations: 137.6 kB / 273.1 MB, free: 5.184 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.006399, allocations: 20 kB / 273.1 MB, free: 5.164 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.006546, allocations: 95.78 kB / 273.2 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.262e-05/0.006629, allocations: 83.69 kB / 273.3 MB, free: 4.988 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.296e-05/0.006692, allocations: 71.77 kB / 273.3 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.006956, allocations: 256.3 kB / 273.6 MB, free: 4.668 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.006958, allocations: 0 / 273.6 MB, free: 4.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.006959, allocations: 0 / 273.6 MB, free: 4.668 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.006962, allocations: 0.5 kB / 273.6 MB, free: 4.668 MB / 250.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.0005417/0.007504, allocations: 0.5649 MB / 274.2 MB, free: 4.066 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.00754, allocations: 12.53 kB / 274.2 MB, free: 4.055 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.869e-05/0.007589, allocations: 24.91 kB / 274.2 MB, free: 4.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.007866, allocations: 250.4 kB / 274.4 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.007887, allocations: 12.36 kB / 274.5 MB, free: 3.746 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.007907, allocations: 23.88 kB / 274.5 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.00804, allocations: 84.45 kB / 274.6 MB, free: 3.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.008049, allocations: 0 / 274.6 MB, free: 3.633 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.008061, allocations: 8 kB / 274.6 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.008067, allocations: 0 / 274.6 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.499e-05/0.008112, allocations: 27.97 kB / 274.6 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003541/0.008466, allocations: 273.6 kB / 274.9 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.008589, allocations: 121.2 kB / 275 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.144e-05/0.00862, allocations: 24.84 kB / 275 MB, free: 3.156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.008633, allocations: 4 kB / 275 MB, free: 3.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/0.008739, allocations: 90.16 kB / 275.1 MB, free: 3.051 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.00874, allocations: 0 / 275.1 MB, free: 3.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000427/0.009167, allocations: 112.6 kB / 275.2 MB, free: 2.938 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.009196, allocations: 59.34 kB / 275.3 MB, free: 2.867 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.009399, allocations: 316.6 kB / 275.6 MB, free: 2.543 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.00942, allocations: 37.69 kB / 275.6 MB, free: 2.5 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.009473, allocations: 133 kB / 275.7 MB, free: 2.367 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.009502, allocations: 39.67 kB / 275.8 MB, free: 2.328 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/0.009543, allocations: 45.67 kB / 275.8 MB, free: 2.277 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.245e-05/0.009625, allocations: 342.8 kB / 276.2 MB, free: 1.934 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.544e-05/0.009651, allocations: 18.81 kB / 276.2 MB, free: 1.914 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.946e-05/0.00972, allocations: 103.7 kB / 276.3 MB, free: 1.785 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.843e-05/0.009789, allocations: 72.16 kB / 276.3 MB, free: 1.703 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.009791, allocations: 0 / 276.3 MB, free: 1.703 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001044/0.009895, allocations: 108.3 kB / 276.5 MB, free: 1.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/0.009905, allocations: 4 kB / 276.5 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.009909, allocations: 0 / 276.5 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.009922, allocations: 4 kB / 276.5 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.902e-05/0.009991, allocations: 27.86 kB / 276.5 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.848e-06/0.009995, allocations: 0 / 276.5 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.97e-05/0.01004, allocations: 19.89 kB / 276.5 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.01005, allocations: 8.062 kB / 276.5 MB, free: 1.527 MB / 250.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 8.181e-05/0.01013, allocations: 134.6 kB / 276.6 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.01015, allocations: 15.98 kB / 276.7 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.01028, allocations: 120.4 kB / 276.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.01029, allocations: 4 kB / 276.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.654e-06/0.01029, allocations: 3.938 kB / 276.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.01029, allocations: 0 / 276.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.01041, allocations: 141.7 kB / 276.9 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.01041, allocations: 0 / 276.9 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.453e-05/0.01044, allocations: 15.98 kB / 276.9 MB, free: 1.062 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.01044, allocations: 4 kB / 276.9 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.01045, allocations: 4 kB / 276.9 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.01045, allocations: 0 / 276.9 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01045, allocations: 0 / 276.9 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.01056, allocations: 140.7 kB / 277.1 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.813e-05/0.01059, allocations: 35.73 kB / 277.1 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.01062, allocations: 4 kB / 277.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.77e-05/0.01066, allocations: 8 kB / 277.1 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.01069, allocations: 15.97 kB / 277.1 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.0107, allocations: 8 kB / 277.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.01081, allocations: 139.4 kB / 277.3 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01081, allocations: 0 / 277.3 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001608/0.01097, allocations: 51.94 kB / 277.3 MB, free: 0.6367 MB / 250.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,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.00109/0.01206, allocations: 0.5261 MB / 277.9 MB, free: 352 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.01219, allocations: 75.81 kB / 277.9 MB, free: 276 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.0122, allocations: 4 kB / 277.9 MB, free: 272 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.046e-05/0.01225, allocations: 44.97 kB / 278 MB, free: 224 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.01245, allocations: 88.39 kB / 278.1 MB, free: 144 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004949/0.01294, allocations: 427 kB / 278.5 MB, free: 15.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.105e-05/0.01299, allocations: 96.3 kB / 278.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.356e-05/0.01307, allocations: 46.25 kB / 278.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.01317, allocations: 103.3 kB / 278.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01317, allocations: 0 / 278.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of Templates: time 0.006436/0.01961, allocations: 4.358 MB / 283.1 MB, free: 11.16 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.822131955064833]