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.001343/0.001343, allocations: 73.8 kB / 21.24 MB, free: 0.5547 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.001419/0.001419, allocations: 147.9 kB / 24.49 MB, free: 3.727 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.441/1.441, allocations: 173.4 MB / 201.1 MB, free: 12.68 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.001622/0.001622, allocations: 46.61 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09512, allocations: 52.16 MB / 371.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003488/0.09861, allocations: 1.951 MB / 373.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.1006, allocations: 1.08 MB / 374.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1007, allocations: 7.938 kB / 374.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008797/0.1016, allocations: 319.1 kB / 374.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004901/0.102, allocations: 215.2 kB / 375.1 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007236/0.1028, allocations: 291.2 kB / 375.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004198/0.1032, allocations: 339.1 kB / 375.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1033, allocations: 40.52 kB / 375.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.1035, allocations: 155.4 kB / 375.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.1038, allocations: 155.3 kB / 376.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.247e-05/0.1038, allocations: 20 kB / 376.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.104, allocations: 83.94 kB / 376.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1041, allocations: 87.67 kB / 376.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.1042, allocations: 91.41 kB / 376.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004466/0.1047, allocations: 354.5 kB / 376.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1047, allocations: 4 kB / 376.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1047, allocations: 0 / 376.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1047, allocations: 0 / 376.7 MB, free: 2.18 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.000983/0.1057, allocations: 0.5933 MB / 377.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1057, allocations: 12.92 kB / 377.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.602e-05/0.1058, allocations: 36.7 kB / 377.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004467/0.1062, allocations: 266.2 kB / 377.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.1063, allocations: 8 kB / 377.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.1063, allocations: 12 kB / 377.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.1066, allocations: 117.6 kB / 377.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.1066, allocations: 4 kB / 377.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.1066, allocations: 11.92 kB / 377.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1066, allocations: 4 kB / 377.8 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.1068, allocations: 67.97 kB / 377.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006593/0.1074, allocations: 416 kB / 378.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.1078, allocations: 134.7 kB / 378.4 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.1079, allocations: 44.84 kB / 378.4 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1079, allocations: 0 / 378.4 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.1081, allocations: 123.3 kB / 378.5 MB, free: 236 kB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.1081, allocations: 0 / 378.5 MB, free: 236 kB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000523/0.1087, allocations: 221.3 kB / 378.7 MB, free: 8 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.1087, allocations: 59.41 kB / 378.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005077/0.1092, allocations: 436.5 kB / 379.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.1093, allocations: 25.7 kB / 379.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.1094, allocations: 172 kB / 379.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.57e-05/0.1094, allocations: 39.72 kB / 379.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.1095, allocations: 45.7 kB / 379.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1097, allocations: 346.8 kB / 379.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.1098, allocations: 47.94 kB / 379.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.11, allocations: 147.6 kB / 380 MB, free: 14.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.1102, allocations: 109.3 kB / 380.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1102, allocations: 4 kB / 380.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003562/0.1106, allocations: 185.3 kB / 380.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1106, allocations: 6.906 kB / 380.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1106, allocations: 8 kB / 380.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1106, allocations: 0 / 380.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.1108, allocations: 23.98 kB / 380.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.1108, allocations: 7.922 kB / 380.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.1109, allocations: 15.95 kB / 380.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1109, allocations: 4 kB / 380.4 MB, free: 14.27 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.0001777/0.1111, allocations: 167.8 kB / 380.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.521e-05/0.1111, allocations: 35.75 kB / 380.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004269/0.1116, allocations: 204.3 kB / 380.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1116, allocations: 0 / 380.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1116, allocations: 0 / 380.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1116, allocations: 7.922 kB / 380.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/0.1118, allocations: 225.1 kB / 381 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1118, allocations: 0 / 381 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.337e-05/0.1119, allocations: 11.98 kB / 381 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1119, allocations: 3.938 kB / 381 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.1119, allocations: 7.984 kB / 381 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1119, allocations: 4 kB / 381 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1119, allocations: 4 kB / 381 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003896/0.1123, allocations: 216.8 kB / 381.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.62e-05/0.1124, allocations: 31.73 kB / 381.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.1124, allocations: 11.94 kB / 381.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.643e-05/0.1125, allocations: 11.98 kB / 381.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/0.1125, allocations: 11.98 kB / 381.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.1126, allocations: 11.98 kB / 381.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003777/0.113, allocations: 315 kB / 381.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.113, allocations: 0 / 381.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.1132, allocations: 55.88 kB / 381.7 MB, free: 12.89 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,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.001735/0.115, allocations: 453.5 kB / 382.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003366/0.1153, allocations: 127.1 kB / 382.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1153, allocations: 0 / 382.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.1155, allocations: 63.91 kB / 382.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.1159, allocations: 75.59 kB / 382.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009099/0.1168, allocations: 0.5037 MB / 382.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/0.117, allocations: 165.8 kB / 383.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.1171, allocations: 46.25 kB / 383.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.1172, allocations: 28.5 kB / 383.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1172, allocations: 3.938 kB / 383.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of Templates: time 0.008933/0.1261, allocations: 3.959 MB / 387.1 MB, free: 7.68 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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.305981504032388]