Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009622/0.0009622, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009837/0.0009837, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.065/1.065, allocations: 177 MB / 205.1 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.679e-05/2.813e-05, allocations: 5.266 kB / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002814/0.002842, allocations: 2.031 MB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.004349, allocations: 1.25 MB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.00446, allocations: 7.938 kB / 276.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006572/0.005117, allocations: 307.1 kB / 276.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.005486, allocations: 266.9 kB / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.005808, allocations: 235.3 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.006098, allocations: 367 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.006214, allocations: 40.91 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.006391, allocations: 191.5 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.006529, allocations: 143.6 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.789e-05/0.006557, allocations: 20 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.006692, allocations: 87.88 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.643e-05/0.006778, allocations: 95.67 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.332e-05/0.006842, allocations: 67.78 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002768/0.007119, allocations: 270.9 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.007122, allocations: 0 / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.007124, allocations: 0 / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.007128, allocations: 0 / 278.7 MB, free: 11.88 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.0006579/0.007785, allocations: 0.697 MB / 279.4 MB, free: 11.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.007823, allocations: 11.98 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.962e-05/0.007892, allocations: 48.69 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.008164, allocations: 287.5 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.008186, allocations: 12.38 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.008202, allocations: 8.375 kB / 279.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.008358, allocations: 90.05 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.008365, allocations: 192 / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.008374, allocations: 4.312 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.008381, allocations: 7.938 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.831e-05/0.00843, allocations: 35.89 kB / 279.8 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.008823, allocations: 403.9 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.008959, allocations: 87.25 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.527e-05/0.008995, allocations: 31.67 kB / 280.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.009011, allocations: 0 / 280.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001204/0.009131, allocations: 108.9 kB / 280.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 8.11e-07/0.009132, allocations: 4 kB / 280.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002228/0.009355, allocations: 160.3 kB / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.00938, allocations: 51.41 kB / 280.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.009627, allocations: 398.5 kB / 281.1 MB, free: 9.293 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.009647, allocations: 33.7 kB / 281.1 MB, free: 9.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.009757, allocations: 230.7 kB / 281.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.084e-05/0.009788, allocations: 35.69 kB / 281.4 MB, free: 8.988 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.203e-05/0.00984, allocations: 51.33 kB / 281.4 MB, free: 8.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.009983, allocations: 0.5311 MB / 281.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.742e-05/0.01001, allocations: 15.98 kB / 282 MB, free: 8.371 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.463e-05/0.01008, allocations: 125.2 kB / 282.1 MB, free: 8.219 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.22e-05/0.01016, allocations: 71.06 kB / 282.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.01016, allocations: 0 / 282.1 MB, free: 8.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001439/0.0103, allocations: 148.5 kB / 282.3 MB, free: 7.988 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.01032, allocations: 7.125 kB / 282.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.01032, allocations: 0 / 282.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.01033, allocations: 4 kB / 282.3 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.359e-05/0.01041, allocations: 23.98 kB / 282.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.01041, allocations: 4 kB / 282.3 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.257e-05/0.01046, allocations: 11.89 kB / 282.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.01047, allocations: 12.06 kB / 282.4 MB, free: 7.93 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 8.974e-05/0.01056, allocations: 178.4 kB / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.01059, allocations: 35.81 kB / 282.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.01078, allocations: 152.5 kB / 282.7 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.01079, allocations: 0 / 282.7 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.01079, allocations: 0 / 282.7 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.01079, allocations: 3.938 kB / 282.7 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.01094, allocations: 197 kB / 282.9 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01095, allocations: 3.938 kB / 282.9 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.231e-05/0.01098, allocations: 12 kB / 282.9 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.01098, allocations: 4 kB / 282.9 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.01099, allocations: 3.984 kB / 282.9 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.01099, allocations: 4 kB / 282.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.01099, allocations: 4 kB / 282.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.01115, allocations: 184.1 kB / 283.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.01119, allocations: 39.72 kB / 283.2 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.01121, allocations: 7.938 kB / 283.2 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.364e-05/0.01125, allocations: 8 kB / 283.2 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.285e-05/0.0113, allocations: 15.97 kB / 283.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.01131, allocations: 8 kB / 283.2 MB, free: 7.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000138/0.01145, allocations: 263 kB / 283.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.01145, allocations: 0 / 283.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.01164, allocations: 55.92 kB / 283.5 MB, free: 6.711 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.0008499/0.01249, allocations: 390.9 kB / 283.9 MB, free: 6.438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.01262, allocations: 79.48 kB / 284 MB, free: 6.355 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01262, allocations: 4 kB / 284 MB, free: 6.352 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.799e-05/0.01268, allocations: 47.59 kB / 284 MB, free: 6.301 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.01294, allocations: 93.91 kB / 284.1 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004904/0.01343, allocations: 452.2 kB / 284.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.383e-05/0.01348, allocations: 100.3 kB / 284.6 MB, free: 5.621 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.596e-05/0.01355, allocations: 38.25 kB / 284.7 MB, free: 5.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.01367, allocations: 122.2 kB / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01368, allocations: 0 / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of Templates: time 0.006129/0.0198, allocations: 4.446 MB / 289.3 MB, free: 1.074 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.8492780569940805]