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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008478/0.0008478, allocations: 75.75 kB / 21.97 MB, free: 2.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 166.2 kB / 25.33 MB, free: 9.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.001/1.001, allocations: 158.6 MB / 187.2 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 251 MB, free: 3.621 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.07e-05/2.242e-05, allocations: 6.109 kB / 251 MB, free: 3.617 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002654/0.002676, allocations: 2.012 MB / 253 MB, free: 1.586 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.00427, allocations: 1.045 MB / 254.1 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.004388, allocations: 8 kB / 254.1 MB, free: 0.5234 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008397/0.005228, allocations: 311 kB / 254.4 MB, free: 224 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.005618, allocations: 219.2 kB / 254.6 MB, free: 4 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005333/0.006151, allocations: 251.4 kB / 254.9 MB, free: 15.76 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.006539, allocations: 347 kB / 255.2 MB, free: 15.42 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.00669, allocations: 40.56 kB / 255.2 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.006917, allocations: 187.5 kB / 255.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.007099, allocations: 135.6 kB / 255.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.007136, allocations: 16 kB / 255.6 MB, free: 15.05 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.007304, allocations: 91.81 kB / 255.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.00741, allocations: 91.67 kB / 255.7 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.73e-05/0.007497, allocations: 67.78 kB / 255.8 MB, free: 14.8 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003683/0.007866, allocations: 263 kB / 256.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.007868, allocations: 0 / 256.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.007869, allocations: 0 / 256.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.007874, allocations: 0 / 256.1 MB, free: 14.54 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.000793/0.008667, allocations: 0.6932 MB / 256.8 MB, free: 13.8 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.008707, allocations: 15.98 kB / 256.8 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.1e-05/0.008788, allocations: 44.69 kB / 256.8 MB, free: 13.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.00917, allocations: 277.2 kB / 257.1 MB, free: 13.44 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.009195, allocations: 12.23 kB / 257.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.009221, allocations: 12.38 kB / 257.1 MB, free: 13.41 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.009419, allocations: 90.19 kB / 257.2 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.009435, allocations: 7.938 kB / 257.2 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.445e-05/0.009449, allocations: 4 kB / 257.2 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.009458, allocations: 4 kB / 257.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.439e-05/0.009552, allocations: 43.95 kB / 257.3 MB, free: 13.26 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006248/0.01018, allocations: 447.3 kB / 257.7 MB, free: 12.79 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.01038, allocations: 99.2 kB / 257.8 MB, free: 12.68 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.098e-05/0.01044, allocations: 31.67 kB / 257.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.01046, allocations: 4 kB / 257.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.01062, allocations: 104.9 kB / 257.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.01062, allocations: 0 / 257.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003316/0.01095, allocations: 169.4 kB / 258.1 MB, free: 12.35 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.228e-05/0.01105, allocations: 59.39 kB / 258.2 MB, free: 12.28 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003591/0.01141, allocations: 394.1 kB / 258.5 MB, free: 11.88 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.01143, allocations: 29.7 kB / 258.6 MB, free: 11.85 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.01156, allocations: 218.8 kB / 258.8 MB, free: 11.63 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.0116, allocations: 31.7 kB / 258.8 MB, free: 11.6 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.844e-05/0.01167, allocations: 55.34 kB / 258.9 MB, free: 11.54 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.01185, allocations: 0.5157 MB / 259.4 MB, free: 11.01 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.366e-05/0.0119, allocations: 27.98 kB / 259.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.01202, allocations: 133.8 kB / 259.5 MB, free: 10.82 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.01213, allocations: 78.98 kB / 259.6 MB, free: 10.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.01214, allocations: 4 kB / 259.6 MB, free: 10.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002156/0.01235, allocations: 149.3 kB / 259.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.01237, allocations: 8 kB / 259.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.01237, allocations: 0 / 259.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.01239, allocations: 4.094 kB / 259.8 MB, free: 10.56 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.01249, allocations: 31.92 kB / 259.8 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.0125, allocations: 3.938 kB / 259.8 MB, free: 10.53 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.01257, allocations: 11.95 kB / 259.8 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.01258, allocations: 8 kB / 259.8 MB, free: 10.51 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 0.0001043/0.01268, allocations: 174.5 kB / 260 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.027e-05/0.01272, allocations: 35.81 kB / 260 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002563/0.01298, allocations: 160.4 kB / 260.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.01298, allocations: 0 / 260.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.01299, allocations: 8 kB / 260.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.01299, allocations: 3.938 kB / 260.2 MB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.0132, allocations: 232.5 kB / 260.4 MB, free: 9.852 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.0132, allocations: 0 / 260.4 MB, free: 9.852 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.584e-05/0.01324, allocations: 11.94 kB / 260.4 MB, free: 9.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.01324, allocations: 0 / 260.4 MB, free: 9.84 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.01325, allocations: 11.98 kB / 260.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.01326, allocations: 0 / 260.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01326, allocations: 0 / 260.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.01349, allocations: 203 kB / 260.7 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.01353, allocations: 35.73 kB / 260.7 MB, free: 9.574 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.01356, allocations: 8 kB / 260.7 MB, free: 9.566 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.196e-05/0.01361, allocations: 11.94 kB / 260.7 MB, free: 9.555 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.01367, allocations: 15.97 kB / 260.7 MB, free: 9.539 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.01369, allocations: 4 kB / 260.7 MB, free: 9.535 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002258/0.01391, allocations: 270.9 kB / 261 MB, free: 9.27 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01391, allocations: 0 / 261 MB, free: 9.27 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002661/0.01418, allocations: 51.94 kB / 261 MB, free: 9.219 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.0009705/0.01515, allocations: 404.2 kB / 261.4 MB, free: 8.852 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001986/0.01535, allocations: 91.39 kB / 261.5 MB, free: 8.758 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.01535, allocations: 0 / 261.5 MB, free: 8.758 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.948e-05/0.01543, allocations: 55.72 kB / 261.6 MB, free: 8.699 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.01578, allocations: 105.3 kB / 261.7 MB, free: 8.594 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006058/0.01638, allocations: 434 kB / 262.1 MB, free: 8.145 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.035e-05/0.01645, allocations: 100.3 kB / 262.2 MB, free: 8.027 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.673e-05/0.01654, allocations: 42.25 kB / 262.3 MB, free: 7.984 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.039e-05/0.0166, allocations: 28.5 kB / 262.3 MB, free: 7.957 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/0.0166, allocations: 0 / 262.3 MB, free: 7.957 MB / 250.7 MB Notification: Performance of Templates: time 0.007096/0.0237, allocations: 3.999 MB / 266.3 MB, free: 3.957 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.031649707816541]