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.001671/0.001671, allocations: 119.5 kB / 18.41 MB, free: 4.555 MB / 14.72 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.002058/0.002058, allocations: 188.3 kB / 21.35 MB, free: 1.621 MB / 14.72 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 1.538/1.538, allocations: 222.9 MB / 247 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001545/0.001545, allocations: 51.92 kB / 358.7 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09746, allocations: 49.43 MB / 408.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003697/0.1012, allocations: 2.005 MB / 410.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.1033, allocations: 1.138 MB / 411.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1034, allocations: 4 kB / 411.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009229/0.1043, allocations: 299.2 kB / 411.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004419/0.1048, allocations: 203.2 kB / 411.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007279/0.1055, allocations: 290.6 kB / 412 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.106, allocations: 339.2 kB / 412.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.1061, allocations: 68.34 kB / 412.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.1063, allocations: 143.4 kB / 412.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.1065, allocations: 139.5 kB / 412.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.186e-05/0.1066, allocations: 16 kB / 412.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.1068, allocations: 87.88 kB / 412.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.1069, allocations: 83.73 kB / 412.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.107, allocations: 127.2 kB / 413 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.1075, allocations: 350.5 kB / 413.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1075, allocations: 0 / 413.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1075, allocations: 4 kB / 413.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1075, allocations: 0 / 413.3 MB, free: 1.641 MB / 334.1 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.001047/0.1086, allocations: 0.6647 MB / 414 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1086, allocations: 8.031 kB / 414 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.382e-05/0.1087, allocations: 44.69 kB / 414 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.1092, allocations: 335.9 kB / 414.4 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.1092, allocations: 12 kB / 414.4 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.1093, allocations: 20 kB / 414.4 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.1096, allocations: 142.4 kB / 414.5 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1096, allocations: 0 / 414.5 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.1096, allocations: 4 kB / 414.6 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1096, allocations: 0 / 414.6 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.1098, allocations: 75.89 kB / 414.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007434/0.1106, allocations: 496.4 kB / 415.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.1109, allocations: 134.7 kB / 415.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1111, allocations: 48.83 kB / 415.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.1111, allocations: 7.938 kB / 415.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.1113, allocations: 122.2 kB / 415.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.1114, allocations: 0 / 415.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005183/0.1119, allocations: 205.4 kB / 415.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.553e-05/0.112, allocations: 110.8 kB / 415.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005029/0.1125, allocations: 428.4 kB / 416.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.1125, allocations: 37.7 kB / 416.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1127, allocations: 168 kB / 416.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.1127, allocations: 39.72 kB / 416.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.986e-05/0.1128, allocations: 45.7 kB / 416.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.113, allocations: 346.8 kB / 416.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1131, allocations: 43.94 kB / 416.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.1132, allocations: 111.1 kB / 416.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.1135, allocations: 101.4 kB / 417 MB, free: 13.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1135, allocations: 3.938 kB / 417 MB, free: 13.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003383/0.1138, allocations: 181.3 kB / 417.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1139, allocations: 8.062 kB / 417.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1139, allocations: 4 kB / 417.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1139, allocations: 0 / 417.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.114, allocations: 27.92 kB / 417.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.114, allocations: 4 kB / 417.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1141, allocations: 15.94 kB / 417.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.1142, allocations: 8 kB / 417.3 MB, free: 13.42 MB / 350.1 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.0001755/0.1143, allocations: 167.5 kB / 417.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.782e-05/0.1144, allocations: 39.75 kB / 417.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.063e-05/0.1145, allocations: 38.92 kB / 417.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1145, allocations: 0 / 417.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1145, allocations: 48 / 417.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1146, allocations: 7.984 kB / 417.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.1149, allocations: 297.4 kB / 417.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.1149, allocations: 8 kB / 417.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.854e-05/0.115, allocations: 8 kB / 417.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.115, allocations: 0 / 417.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.115, allocations: 4 kB / 417.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.115, allocations: 4 kB / 417.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.115, allocations: 3.984 kB / 417.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.1154, allocations: 204.7 kB / 418 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.058e-05/0.1155, allocations: 108.9 kB / 418.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.1155, allocations: 4 kB / 418.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.632e-05/0.1156, allocations: 11.98 kB / 418.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.428e-05/0.1157, allocations: 7.984 kB / 418.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.1157, allocations: 16 kB / 418.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003765/0.1161, allocations: 311 kB / 418.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1161, allocations: 0 / 418.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.1164, allocations: 55.89 kB / 418.5 MB, free: 12.05 MB / 350.1 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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.001599/0.118, allocations: 436.4 kB / 419 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003559/0.1184, allocations: 127.1 kB / 419.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.1184, allocations: 0 / 419.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1186, allocations: 63.91 kB / 419.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004519/0.119, allocations: 69.92 kB / 419.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009003/0.1199, allocations: 0.5163 MB / 419.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.1204, allocations: 0.7868 MB / 420.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.234e-05/0.1204, allocations: 27.42 kB / 420.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1205, allocations: 0 / 420.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of Templates: time 0.007494/0.128, allocations: 4.205 MB / 424.8 MB, free: 5.957 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.659868448972702]