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.0009854/0.0009854, allocations: 85.08 kB / 23 MB, free: 1.5 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.001012/0.001012, allocations: 177.6 kB / 26.4 MB, free: 7.758 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 0.9852/0.9852, allocations: 158.6 MB / 188.3 MB, free: 2.781 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 1.724e-06/1.724e-06, allocations: 0 / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.139e-05/1.312e-05, allocations: 2.312 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002387/0.0024, allocations: 2.002 MB / 254.2 MB, free: 5.242 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.003721, allocations: 1.033 MB / 255.3 MB, free: 4.199 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.003834, allocations: 7.938 kB / 255.3 MB, free: 4.191 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006326/0.004467, allocations: 315.1 kB / 255.6 MB, free: 3.883 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003083/0.004775, allocations: 211.2 kB / 255.8 MB, free: 3.676 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003877/0.005163, allocations: 259.4 kB / 256 MB, free: 3.422 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.005448, allocations: 347 kB / 256.4 MB, free: 3.082 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.005558, allocations: 32.58 kB / 256.4 MB, free: 3.051 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.00574, allocations: 191.5 kB / 256.6 MB, free: 2.863 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.005885, allocations: 135.7 kB / 256.7 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.005911, allocations: 20 kB / 256.8 MB, free: 2.711 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.006038, allocations: 91.84 kB / 256.8 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-05/0.006114, allocations: 83.69 kB / 256.9 MB, free: 2.539 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.006179, allocations: 71.72 kB / 257 MB, free: 2.469 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002588/0.006438, allocations: 263 kB / 257.3 MB, free: 2.211 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.006439, allocations: 0 / 257.3 MB, free: 2.211 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.00644, allocations: 0 / 257.3 MB, free: 2.211 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.006444, allocations: 3.938 kB / 257.3 MB, free: 2.207 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.0006379/0.007081, allocations: 0.693 MB / 258 MB, free: 1.465 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.007117, allocations: 15.98 kB / 258 MB, free: 1.449 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.007186, allocations: 48.69 kB / 258 MB, free: 1.402 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.007465, allocations: 265.2 kB / 258.3 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.007489, allocations: 8.375 kB / 258.3 MB, free: 1.102 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.007505, allocations: 12.38 kB / 258.3 MB, free: 1.09 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.007662, allocations: 90.12 kB / 258.4 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.007671, allocations: 3.938 kB / 258.4 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.007682, allocations: 4 kB / 258.4 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.007688, allocations: 4 kB / 258.4 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.375e-05/0.007742, allocations: 31.97 kB / 258.4 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000437/0.008179, allocations: 403.9 kB / 258.8 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.008313, allocations: 99.17 kB / 258.9 MB, free: 432 kB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.008345, allocations: 23.67 kB / 258.9 MB, free: 404 kB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.008359, allocations: 4 kB / 258.9 MB, free: 400 kB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000109/0.008468, allocations: 92.94 kB / 259 MB, free: 292 kB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.008469, allocations: 0 / 259 MB, free: 292 kB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002341/0.008703, allocations: 169.2 kB / 259.2 MB, free: 120 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.00873, allocations: 51.41 kB / 259.2 MB, free: 56 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.008973, allocations: 386 kB / 259.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.008992, allocations: 29.7 kB / 259.7 MB, free: 15.63 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.009095, allocations: 214.8 kB / 259.9 MB, free: 15.41 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.00913, allocations: 43.66 kB / 259.9 MB, free: 15.37 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/0.009177, allocations: 47.34 kB / 260 MB, free: 15.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.009313, allocations: 0.5273 MB / 260.5 MB, free: 14.78 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.687e-05/0.00934, allocations: 15.98 kB / 260.5 MB, free: 14.76 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.258e-05/0.009413, allocations: 121.8 kB / 260.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.685e-05/0.009489, allocations: 74.97 kB / 260.7 MB, free: 14.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.009492, allocations: 0 / 260.7 MB, free: 14.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001523/0.009644, allocations: 141.3 kB / 260.8 MB, free: 14.38 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.009658, allocations: 4 kB / 260.8 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.009663, allocations: 0 / 260.8 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.009673, allocations: 4 kB / 260.8 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.535e-05/0.009748, allocations: 23.92 kB / 260.9 MB, free: 14.35 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-06/0.009751, allocations: 4.094 kB / 260.9 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.83e-05/0.00981, allocations: 23.88 kB / 260.9 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.009818, allocations: 4 kB / 260.9 MB, free: 14.32 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.0001041/0.009922, allocations: 174.5 kB / 261.1 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.318e-05/0.009955, allocations: 39.8 kB / 261.1 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001853/0.01014, allocations: 152.4 kB / 261.2 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.01014, allocations: 0 / 261.2 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.01015, allocations: 4 kB / 261.3 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01015, allocations: 4 kB / 261.3 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.01031, allocations: 193 kB / 261.4 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01031, allocations: 0 / 261.4 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.029e-05/0.01034, allocations: 11.98 kB / 261.5 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.01034, allocations: 4 kB / 261.5 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.01035, allocations: 0 / 261.5 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.01035, allocations: 0 / 261.5 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.01035, allocations: 0 / 261.5 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.01052, allocations: 195.6 kB / 261.7 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.999e-05/0.01055, allocations: 35.73 kB / 261.7 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.01057, allocations: 8 kB / 261.7 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.049e-05/0.01061, allocations: 11.98 kB / 261.7 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.01065, allocations: 11.98 kB / 261.7 MB, free: 13.42 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.01066, allocations: 7.984 kB / 261.7 MB, free: 13.41 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001318/0.0108, allocations: 246.9 kB / 262 MB, free: 13.17 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0108, allocations: 0 / 262 MB, free: 13.17 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001993/0.011, allocations: 59.88 kB / 262 MB, free: 13.11 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.0008001/0.0118, allocations: 401 kB / 262.4 MB, free: 12.77 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.01194, allocations: 83.47 kB / 262.5 MB, free: 12.68 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01194, allocations: 3.938 kB / 262.5 MB, free: 12.68 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.495e-05/0.012, allocations: 43.67 kB / 262.5 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.000266/0.01227, allocations: 92.22 kB / 262.6 MB, free: 12.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004796/0.01275, allocations: 449.9 kB / 263.1 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.591e-05/0.0128, allocations: 100.2 kB / 263.2 MB, free: 11.96 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.124e-05/0.01287, allocations: 34.27 kB / 263.2 MB, free: 11.92 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.01299, allocations: 122.2 kB / 263.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01299, allocations: 4 kB / 263.3 MB, free: 11.8 MB / 250.7 MB Notification: Performance of Templates: time 0.006463/0.01945, allocations: 4.438 MB / 267.8 MB, free: 7.359 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: 2.816224911250174]