Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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.0008793/0.0008793, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.000932/0.000932, allocations: 166.9 kB / 25.7 MB, free: 8.406 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.9045/0.9045, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 251.5 MB, free: 7.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.617e-05/1.734e-05, allocations: 6.25 kB / 251.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00225/0.002268, allocations: 1.853 MB / 253.4 MB, free: 5.43 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.003365, allocations: 0.9553 MB / 254.3 MB, free: 4.465 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.533e-05/0.003451, allocations: 0 / 254.3 MB, free: 4.465 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005239/0.003974, allocations: 175.4 kB / 254.5 MB, free: 4.293 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.004185, allocations: 127.4 kB / 254.6 MB, free: 4.168 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.004435, allocations: 151.5 kB / 254.8 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.004621, allocations: 207.3 kB / 255 MB, free: 3.816 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.48e-05/0.004696, allocations: 22.44 kB / 255 MB, free: 3.797 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.004811, allocations: 107.7 kB / 255.1 MB, free: 3.691 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.004913, allocations: 79.78 kB / 255.2 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.004934, allocations: 12 kB / 255.2 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.005045, allocations: 63.88 kB / 255.2 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.184e-05/0.005106, allocations: 51.83 kB / 255.3 MB, free: 3.488 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.341e-05/0.00515, allocations: 39.86 kB / 255.3 MB, free: 3.449 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.005345, allocations: 171.3 kB / 255.5 MB, free: 3.281 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.005347, allocations: 0 / 255.5 MB, free: 3.281 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.005347, allocations: 0 / 255.5 MB, free: 3.281 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.185e-06/0.00535, allocations: 0 / 255.5 MB, free: 3.281 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004536/0.005804, allocations: 437.2 kB / 255.9 MB, free: 2.824 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.888e-05/0.005833, allocations: 11.98 kB / 255.9 MB, free: 2.812 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.005869, allocations: 24.86 kB / 256 MB, free: 2.789 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.006052, allocations: 185.6 kB / 256.1 MB, free: 2.578 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.006069, allocations: 8.375 kB / 256.1 MB, free: 2.57 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.006081, allocations: 4.375 kB / 256.2 MB, free: 2.566 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.006209, allocations: 100.4 kB / 256.2 MB, free: 2.449 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.006217, allocations: 3.938 kB / 256.3 MB, free: 2.445 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.914e-06/0.006225, allocations: 4 kB / 256.3 MB, free: 2.441 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.006229, allocations: 4 kB / 256.3 MB, free: 2.438 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.913e-05/0.006268, allocations: 22.75 kB / 256.3 MB, free: 2.414 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000332/0.0066, allocations: 450.5 kB / 256.7 MB, free: 1.945 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.006719, allocations: 130.5 kB / 256.9 MB, free: 1.785 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.063e-05/0.006749, allocations: 34.56 kB / 256.9 MB, free: 1.742 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.006765, allocations: 7.938 kB / 256.9 MB, free: 1.734 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/0.006874, allocations: 104.7 kB / 257 MB, free: 1.609 MB / 234.7 MB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.006875, allocations: 7.922 kB / 257 MB, free: 1.602 MB / 234.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001457/0.007021, allocations: 104.3 kB / 257.1 MB, free: 1.492 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.007063, allocations: 102.8 kB / 257.2 MB, free: 1.367 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.007193, allocations: 230.7 kB / 257.4 MB, free: 1.129 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.007206, allocations: 33.69 kB / 257.5 MB, free: 1.09 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.007246, allocations: 108.5 kB / 257.6 MB, free: 0.9766 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/0.00727, allocations: 23.8 kB / 257.6 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.007306, allocations: 37.69 kB / 257.6 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.007378, allocations: 334.9 kB / 258 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.905e-05/0.007397, allocations: 14.83 kB / 258 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.548e-05/0.007442, allocations: 86.44 kB / 258.1 MB, free: 464 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.919e-05/0.007502, allocations: 74.34 kB / 258.1 MB, free: 372 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.007503, allocations: 4 kB / 258.1 MB, free: 368 kB / 234.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 8.983e-05/0.007593, allocations: 100.3 kB / 258.2 MB, free: 260 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.007603, allocations: 4 kB / 258.2 MB, free: 256 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.007607, allocations: 4.125 kB / 258.2 MB, free: 252 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.007617, allocations: 4 kB / 258.2 MB, free: 248 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.623e-05/0.007673, allocations: 19.92 kB / 258.3 MB, free: 228 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.474e-06/0.007676, allocations: 0 / 258.3 MB, free: 228 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.825e-05/0.007724, allocations: 15.98 kB / 258.3 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-06/0.00773, allocations: 4 kB / 258.3 MB, free: 208 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 7.273e-05/0.007803, allocations: 124.6 kB / 258.4 MB, free: 72 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.007822, allocations: 15.92 kB / 258.4 MB, free: 56 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.007933, allocations: 75.45 kB / 258.5 MB, free: 15.97 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.007936, allocations: 4 kB / 258.5 MB, free: 15.97 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.007938, allocations: 3.984 kB / 258.5 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.007943, allocations: 4 kB / 258.5 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.008046, allocations: 113.7 kB / 258.6 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.008048, allocations: 0 / 258.6 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.874e-05/0.008067, allocations: 11.98 kB / 258.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.008068, allocations: 3.938 kB / 258.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.008076, allocations: 7.938 kB / 258.6 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.008077, allocations: 0 / 258.6 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.008078, allocations: 0 / 258.6 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.008188, allocations: 124.5 kB / 258.8 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.05e-05/0.008209, allocations: 27.83 kB / 258.8 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.008229, allocations: 8.062 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.011e-05/0.008269, allocations: 12 kB / 258.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.008306, allocations: 19.91 kB / 258.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.008317, allocations: 4 kB / 258.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.018e-05/0.008377, allocations: 81.61 kB / 258.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008377, allocations: 0 / 258.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001417/0.008518, allocations: 47.88 kB / 259 MB, free: 15.46 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001001/0.009519, allocations: 0.5045 MB / 259.5 MB, free: 15.01 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.75e-05/0.009617, allocations: 52.77 kB / 259.5 MB, free: 14.95 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.009619, allocations: 0 / 259.5 MB, free: 14.95 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.434e-05/0.009664, allocations: 44.77 kB / 259.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.00982, allocations: 48.61 kB / 259.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.01017, allocations: 327.5 kB / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.876e-05/0.01021, allocations: 79.98 kB / 260 MB, free: 14.41 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.01032, allocations: 21.47 kB / 260 MB, free: 14.39 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.94e-05/0.0104, allocations: 79.36 kB / 260.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of SimCode: time 6.92e-07/0.0104, allocations: 0 / 260.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of Templates: time 0.00436/0.01476, allocations: 3.045 MB / 263.1 MB, free: 11.26 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.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.731437166687101]