Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009795/0.0009795, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.000981/0.000981, allocations: 169.7 kB / 25.33 MB, free: 9.004 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.109/1.109, allocations: 158.6 MB / 187.2 MB, free: 2.945 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.086e-06/3.086e-06, allocations: 3.984 kB / 251 MB, free: 7.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.276e-05/3.585e-05, allocations: 2.312 kB / 251 MB, free: 7.539 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002943/0.002979, allocations: 2.021 MB / 253 MB, free: 5.5 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.00461, allocations: 1.037 MB / 254.1 MB, free: 4.453 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.004757, allocations: 7.938 kB / 254.1 MB, free: 4.445 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007836/0.005541, allocations: 319 kB / 254.4 MB, free: 4.133 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003872/0.005928, allocations: 211.2 kB / 254.6 MB, free: 3.926 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.006467, allocations: 259.3 kB / 254.9 MB, free: 3.672 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.006849, allocations: 351 kB / 255.2 MB, free: 3.328 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.006994, allocations: 36.56 kB / 255.2 MB, free: 3.293 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002819/0.007276, allocations: 183.5 kB / 255.4 MB, free: 3.113 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.007448, allocations: 135.7 kB / 255.5 MB, free: 2.98 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.369e-05/0.007482, allocations: 19.98 kB / 255.6 MB, free: 2.961 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.00767, allocations: 91.86 kB / 255.7 MB, free: 2.871 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003967/0.008066, allocations: 83.69 kB / 255.7 MB, free: 2.789 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.422e-05/0.008161, allocations: 71.77 kB / 255.8 MB, free: 2.719 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003653/0.008526, allocations: 255 kB / 256.1 MB, free: 2.469 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.008532, allocations: 7.984 kB / 256.1 MB, free: 2.461 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.008533, allocations: 3.938 kB / 256.1 MB, free: 2.457 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.008539, allocations: 0 / 256.1 MB, free: 2.457 MB / 234.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.0008514/0.00939, allocations: 0.6969 MB / 256.8 MB, free: 1.711 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.009435, allocations: 15.98 kB / 256.8 MB, free: 1.695 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.009547, allocations: 40.7 kB / 256.8 MB, free: 1.656 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.009902, allocations: 273.2 kB / 257.1 MB, free: 1.352 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.009931, allocations: 8.375 kB / 257.1 MB, free: 1.344 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.009951, allocations: 16.31 kB / 257.1 MB, free: 1.328 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.01016, allocations: 94.19 kB / 257.2 MB, free: 1.23 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.01017, allocations: 3.938 kB / 257.2 MB, free: 1.227 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.01019, allocations: 11.98 kB / 257.2 MB, free: 1.215 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.0102, allocations: 0 / 257.2 MB, free: 1.215 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.51e-05/0.01028, allocations: 39.91 kB / 257.3 MB, free: 1.176 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000592/0.01087, allocations: 447.4 kB / 257.7 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.01107, allocations: 99.2 kB / 257.8 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.165e-05/0.01112, allocations: 34.55 kB / 257.8 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.01113, allocations: 8 kB / 257.8 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.01129, allocations: 96.94 kB / 257.9 MB, free: 452 kB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 2.685e-06/0.0113, allocations: 4 kB / 257.9 MB, free: 448 kB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003025/0.0116, allocations: 173 kB / 258.1 MB, free: 272 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.01163, allocations: 51.41 kB / 258.2 MB, free: 208 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/0.01193, allocations: 398.2 kB / 258.5 MB, free: 15.8 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.01196, allocations: 29.7 kB / 258.6 MB, free: 15.77 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.01207, allocations: 218.8 kB / 258.8 MB, free: 15.55 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.01211, allocations: 39.62 kB / 258.8 MB, free: 15.51 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.01217, allocations: 55.36 kB / 258.9 MB, free: 15.45 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.01232, allocations: 0.5157 MB / 259.4 MB, free: 14.92 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.858e-05/0.01237, allocations: 23.98 kB / 259.4 MB, free: 14.89 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.092e-05/0.01246, allocations: 129.8 kB / 259.5 MB, free: 14.73 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.614e-05/0.01255, allocations: 75.05 kB / 259.6 MB, free: 14.65 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01256, allocations: 0 / 259.6 MB, free: 14.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001839/0.01274, allocations: 145.4 kB / 259.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.01276, allocations: 12.03 kB / 259.8 MB, free: 14.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.01276, allocations: 4 kB / 259.8 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.01278, allocations: 0 / 259.8 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.528e-05/0.01287, allocations: 19.98 kB / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.01288, allocations: 7.938 kB / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.658e-05/0.01295, allocations: 19.88 kB / 259.8 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.01296, allocations: 8 kB / 259.8 MB, free: 14.43 MB / 250.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.0001096/0.01307, allocations: 178.5 kB / 260 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.302e-05/0.0131, allocations: 31.81 kB / 260 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/0.01333, allocations: 164.5 kB / 260.2 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.01333, allocations: 0 / 260.2 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.01333, allocations: 0 / 260.2 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.01334, allocations: 7.922 kB / 260.2 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.01352, allocations: 236.4 kB / 260.4 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.01353, allocations: 0 / 260.4 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/0.01356, allocations: 19.92 kB / 260.5 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.01356, allocations: 0 / 260.5 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.01358, allocations: 8 kB / 260.5 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.01358, allocations: 0 / 260.5 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.01358, allocations: 0 / 260.5 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001986/0.01378, allocations: 199.3 kB / 260.7 MB, free: 13.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/0.01382, allocations: 39.8 kB / 260.7 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.01385, allocations: 4 kB / 260.7 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.835e-05/0.0139, allocations: 7.984 kB / 260.7 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/0.01399, allocations: 19.92 kB / 260.7 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.01401, allocations: 7.984 kB / 260.7 MB, free: 13.45 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.01419, allocations: 266.9 kB / 261 MB, free: 13.19 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01419, allocations: 0 / 261 MB, free: 13.19 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002375/0.01443, allocations: 51.92 kB / 261 MB, free: 13.14 MB / 250.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.0009556/0.01539, allocations: 404.2 kB / 261.4 MB, free: 12.79 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002209/0.01561, allocations: 91.55 kB / 261.5 MB, free: 12.69 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01561, allocations: 4.062 kB / 261.5 MB, free: 12.69 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.803e-05/0.01569, allocations: 51.61 kB / 261.6 MB, free: 12.63 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.01601, allocations: 93.39 kB / 261.7 MB, free: 12.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006442/0.01665, allocations: 438.1 kB / 262.1 MB, free: 12.09 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.64e-05/0.01672, allocations: 100.3 kB / 262.2 MB, free: 11.97 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.483e-05/0.01682, allocations: 42.25 kB / 262.2 MB, free: 11.93 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.067e-05/0.01688, allocations: 28.44 kB / 262.3 MB, free: 11.9 MB / 250.7 MB Notification: Performance of SimCode: time 1.443e-06/0.01688, allocations: 0 / 262.3 MB, free: 11.9 MB / 250.7 MB Notification: Performance of Templates: time 0.008632/0.02551, allocations: 4.288 MB / 266.6 MB, free: 7.613 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.0851990450173616]