Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009607/0.0009607, allocations: 83.75 kB / 21.19 MB, free: 3.375 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.001088/0.001088, allocations: 165.4 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9467/0.9467, allocations: 177.1 MB / 205 MB, free: 5.277 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.613e-05/2.779e-05, allocations: 6.312 kB / 273 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002659/0.002687, allocations: 2.054 MB / 275 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.004289, allocations: 1.255 MB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.004425, allocations: 4 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007151/0.00514, allocations: 323 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.005586, allocations: 262.9 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004446/0.006031, allocations: 231.3 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00037/0.006401, allocations: 363 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.00652, allocations: 40.86 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.006739, allocations: 199.5 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.006896, allocations: 135.6 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/0.006925, allocations: 16 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.007086, allocations: 103.8 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.754e-05/0.007174, allocations: 83.7 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.392e-05/0.007248, allocations: 75.77 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.007563, allocations: 263 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.007566, allocations: 3.938 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.007566, allocations: 0 / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.007572, allocations: 4 kB / 278.3 MB, free: 12 MB / 266.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.0007102/0.008283, allocations: 0.697 MB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.008322, allocations: 12.03 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.613e-05/0.008398, allocations: 44.7 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.008706, allocations: 295.5 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.008731, allocations: 8.375 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.008748, allocations: 12.38 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/0.008921, allocations: 91 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.008933, allocations: 3.938 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.008947, allocations: 8 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.008956, allocations: 4 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.401e-05/0.00903, allocations: 47.06 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005232/0.009554, allocations: 459.3 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.009716, allocations: 95.2 kB / 280.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.834e-05/0.009765, allocations: 31.67 kB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.00978, allocations: 8 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.009916, allocations: 104.6 kB / 280.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.009918, allocations: 0 / 280.2 MB, free: 9.965 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002797/0.0102, allocations: 173.3 kB / 280.4 MB, free: 9.789 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.01023, allocations: 55.41 kB / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002852/0.01051, allocations: 414.7 kB / 280.9 MB, free: 9.301 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.01053, allocations: 33.7 kB / 280.9 MB, free: 9.262 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.01065, allocations: 226.8 kB / 281.1 MB, free: 9.035 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.01068, allocations: 39.69 kB / 281.2 MB, free: 8.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.01073, allocations: 47.36 kB / 281.2 MB, free: 8.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.01086, allocations: 0.5157 MB / 281.7 MB, free: 8.414 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.335e-05/0.01091, allocations: 23.98 kB / 281.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.01099, allocations: 129.8 kB / 281.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.873e-05/0.01108, allocations: 75.08 kB / 281.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01108, allocations: 0 / 281.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001674/0.01125, allocations: 157 kB / 282.1 MB, free: 7.988 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.01126, allocations: 4 kB / 282.1 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.01127, allocations: 4 kB / 282.1 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.01128, allocations: 0 / 282.1 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.53e-05/0.01137, allocations: 27.92 kB / 282.1 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01137, allocations: 3.938 kB / 282.1 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.828e-05/0.01143, allocations: 27.81 kB / 282.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.01144, allocations: 8.062 kB / 282.2 MB, free: 7.914 MB / 266.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 9.413e-05/0.01154, allocations: 174.5 kB / 282.3 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.196e-05/0.01157, allocations: 31.81 kB / 282.4 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.01178, allocations: 160.5 kB / 282.5 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.01179, allocations: 4 kB / 282.5 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.01179, allocations: 7.969 kB / 282.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.0118, allocations: 3.938 kB / 282.5 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.01196, allocations: 232.5 kB / 282.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.01197, allocations: 8 kB / 282.8 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-05/0.012, allocations: 19.94 kB / 282.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.01201, allocations: 0 / 282.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.01202, allocations: 4 kB / 282.8 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.01202, allocations: 3.984 kB / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01202, allocations: 0 / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.0122, allocations: 198.8 kB / 283 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/0.01223, allocations: 31.75 kB / 283 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.01226, allocations: 11.98 kB / 283 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.0123, allocations: 4 kB / 283 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.01236, allocations: 15.97 kB / 283.1 MB, free: 6.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.01237, allocations: 8 kB / 283.1 MB, free: 6.941 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002289/0.0126, allocations: 283 kB / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0126, allocations: 0 / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.01281, allocations: 55.92 kB / 283.4 MB, free: 6.617 MB / 266.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.0008583/0.01366, allocations: 399.9 kB / 283.8 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001881/0.01385, allocations: 87.48 kB / 283.9 MB, free: 6.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.01385, allocations: 4 kB / 283.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.479e-05/0.01392, allocations: 51.61 kB / 283.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.0142, allocations: 93.56 kB / 284 MB, free: 6.121 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005414/0.01474, allocations: 455.3 kB / 284.5 MB, free: 5.648 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.747e-05/0.01479, allocations: 104.3 kB / 284.6 MB, free: 5.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.867e-05/0.01487, allocations: 42.25 kB / 284.6 MB, free: 5.488 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.38e-05/0.01493, allocations: 36.48 kB / 284.6 MB, free: 5.453 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.01493, allocations: 0 / 284.6 MB, free: 5.453 MB / 266.7 MB Notification: Performance of Templates: time 0.007041/0.02197, allocations: 4.346 MB / 289 MB, free: 1.152 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8460723808966577]