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.0009955/0.0009955, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009471/0.0009471, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.008/1.008, allocations: 177 MB / 204.8 MB, free: 5.582 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.743e-06/1.743e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.472e-05, allocations: 6.25 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005912/0.005936, allocations: 2.057 MB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005225/0.01116, allocations: 1.258 MB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.01132, allocations: 7.938 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008049/0.01213, allocations: 315 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005327/0.01266, allocations: 262.9 kB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.01315, allocations: 235.3 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003459/0.01661, allocations: 363 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.01675, allocations: 44.89 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.01699, allocations: 199.4 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.01718, allocations: 135.6 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.01721, allocations: 24 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.01742, allocations: 83.88 kB / 277.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.01753, allocations: 95.67 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.466e-05/0.01762, allocations: 75.7 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.018, allocations: 263 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.01801, allocations: 3.938 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01801, allocations: 0 / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.01802, allocations: 0 / 278.3 MB, free: 12.06 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.0008958/0.01891, allocations: 0.7048 MB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.01896, allocations: 11.98 kB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.366e-05/0.01905, allocations: 44.7 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003387/0.02244, allocations: 291.5 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.02246, allocations: 4.375 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.02248, allocations: 12.38 kB / 279.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.02269, allocations: 94.05 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.0227, allocations: 4.188 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.02271, allocations: 4.375 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.02272, allocations: 3.938 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.042e-05/0.02281, allocations: 43.91 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.02341, allocations: 463.3 kB / 279.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.0236, allocations: 95.2 kB / 280 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.74e-05/0.02366, allocations: 31.67 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.02367, allocations: 0 / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.02383, allocations: 112.9 kB / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.02384, allocations: 0 / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003408/0.02418, allocations: 172.1 kB / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.02421, allocations: 55.41 kB / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.02458, allocations: 410.7 kB / 280.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.0246, allocations: 29.7 kB / 280.8 MB, free: 9.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.02473, allocations: 222.8 kB / 281 MB, free: 9.098 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.02478, allocations: 43.69 kB / 281.1 MB, free: 9.055 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/0.02484, allocations: 47.34 kB / 281.1 MB, free: 9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.025, allocations: 0.5196 MB / 281.6 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.666e-05/0.02505, allocations: 27.92 kB / 281.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002319/0.02737, allocations: 126.5 kB / 281.8 MB, free: 8.285 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.02749, allocations: 83.08 kB / 281.9 MB, free: 8.191 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.0275, allocations: 3.938 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002259/0.02772, allocations: 150.5 kB / 282 MB, free: 8.035 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.02774, allocations: 10.97 kB / 282 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.02775, allocations: 0 / 282 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.02776, allocations: 0 / 282 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.02787, allocations: 23.98 kB / 282.1 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.02787, allocations: 0 / 282.1 MB, free: 8.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.464e-05/0.02795, allocations: 23.89 kB / 282.1 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.02796, allocations: 15.98 kB / 282.1 MB, free: 7.965 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 0.0001215/0.02808, allocations: 174.5 kB / 282.3 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.02813, allocations: 31.81 kB / 282.3 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005069/0.02863, allocations: 164.5 kB / 282.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.02864, allocations: 0 / 282.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.02864, allocations: 0 / 282.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.02865, allocations: 3.984 kB / 282.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.02886, allocations: 240.4 kB / 282.7 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.02886, allocations: 0 / 282.7 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.647e-05/0.02891, allocations: 23.92 kB / 282.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.02891, allocations: 0 / 282.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.02893, allocations: 4 kB / 282.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.02893, allocations: 0 / 282.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.02893, allocations: 0 / 282.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.02916, allocations: 204.1 kB / 282.9 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.0292, allocations: 27.75 kB / 283 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.02924, allocations: 8 kB / 283 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.985e-05/0.0293, allocations: 7.984 kB / 283 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.492e-05/0.02936, allocations: 19.91 kB / 283 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.02938, allocations: 16 kB / 283 MB, free: 6.984 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002182/0.0296, allocations: 275.1 kB / 283.3 MB, free: 6.719 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0296, allocations: 0 / 283.3 MB, free: 6.719 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002834/0.02988, allocations: 51.94 kB / 283.3 MB, free: 6.668 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.001064/0.03094, allocations: 393.2 kB / 283.7 MB, free: 6.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002253/0.03117, allocations: 102.7 kB / 283.8 MB, free: 6.293 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.03117, allocations: 0 / 283.8 MB, free: 6.293 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.188e-05/0.03125, allocations: 55.58 kB / 283.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.03163, allocations: 97.84 kB / 284 MB, free: 6.141 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006873/0.03232, allocations: 460.2 kB / 284.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.766e-05/0.03238, allocations: 96.3 kB / 284.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.56e-05/0.03248, allocations: 38.25 kB / 284.5 MB, free: 5.512 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.383e-05/0.03254, allocations: 28.5 kB / 284.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of SimCode: time 1.102e-06/0.03254, allocations: 0 / 284.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of Templates: time 0.007493/0.04004, allocations: 4.35 MB / 288.9 MB, free: 1.176 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: 3.038476398680359]