Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001882/0.001882, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002/0.002, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.552/1.552, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.245e-05/3.422e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003627/0.003661, allocations: 1.858 MB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.005946, allocations: 1.142 MB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.88e-05/0.006045, allocations: 7.938 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007528/0.006798, allocations: 167.4 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004986/0.007296, allocations: 183.1 kB / 275.6 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.007684, allocations: 135.5 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.008007, allocations: 215.4 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.008109, allocations: 21.72 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.008318, allocations: 115.7 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.008464, allocations: 79.78 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.008496, allocations: 8 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.008662, allocations: 67.88 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.542e-05/0.008758, allocations: 51.83 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.397e-05/0.008842, allocations: 43.86 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003889/0.00923, allocations: 223.2 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.009234, allocations: 0 / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.009235, allocations: 0 / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.009241, allocations: 0 / 276.6 MB, free: 13.55 MB / 266.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.0009535/0.01019, allocations: 0.5826 MB / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.01023, allocations: 12.03 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/0.01031, allocations: 24.8 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.01066, allocations: 203.7 kB / 277.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.01068, allocations: 4.375 kB / 277.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.0107, allocations: 8.375 kB / 277.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.01095, allocations: 120.9 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.01096, allocations: 3.938 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.01098, allocations: 4 kB / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.01098, allocations: 0 / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.01116, allocations: 51.91 kB / 277.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.01224, allocations: 0.7426 MB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.01254, allocations: 157.2 kB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.01266, allocations: 51.05 kB / 278.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.01269, allocations: 4 kB / 278.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.01295, allocations: 144 kB / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.01295, allocations: 0 / 278.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004951/0.01345, allocations: 177.7 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.01354, allocations: 106.8 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/0.01395, allocations: 348.3 kB / 279.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.01398, allocations: 33.7 kB / 279.3 MB, free: 10.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.01414, allocations: 186.8 kB / 279.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.01419, allocations: 27.81 kB / 279.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.01427, allocations: 47.3 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003022/0.01457, allocations: 0.5196 MB / 280.1 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.49e-05/0.01466, allocations: 27.98 kB / 280.1 MB, free: 9.703 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.01483, allocations: 115.9 kB / 280.3 MB, free: 9.559 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.01506, allocations: 114.3 kB / 280.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01506, allocations: 0 / 280.4 MB, free: 9.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003179/0.01538, allocations: 153.4 kB / 280.5 MB, free: 9.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.01539, allocations: 4 kB / 280.5 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.0154, allocations: 0 / 280.5 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.01541, allocations: 4 kB / 280.5 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.325e-05/0.01551, allocations: 16.09 kB / 280.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.01552, allocations: 7.984 kB / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.662e-05/0.01561, allocations: 8 kB / 280.6 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.01563, allocations: 8 kB / 280.6 MB, free: 9.223 MB / 266.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 0.0001638/0.01579, allocations: 180.9 kB / 280.7 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.568e-05/0.01586, allocations: 31.84 kB / 280.8 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002542/0.01611, allocations: 99.45 kB / 280.9 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.01612, allocations: 7.984 kB / 280.9 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.01612, allocations: 0 / 280.9 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.01613, allocations: 4 kB / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/0.01641, allocations: 224.4 kB / 281.1 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.01641, allocations: 3.938 kB / 281.1 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.01645, allocations: 4 kB / 281.1 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.01646, allocations: 7.938 kB / 281.1 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.01647, allocations: 3.984 kB / 281.1 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.01647, allocations: 4 kB / 281.1 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.01647, allocations: 0 / 281.1 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003812/0.01686, allocations: 207.5 kB / 281.3 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.0169, allocations: 15.91 kB / 281.3 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.01693, allocations: 8 kB / 281.3 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.908e-05/0.01702, allocations: 11.98 kB / 281.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.83e-05/0.01709, allocations: 15.97 kB / 281.4 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.01711, allocations: 4 kB / 281.4 MB, free: 8.316 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002554/0.01736, allocations: 237.1 kB / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01736, allocations: 0 / 281.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002707/0.01763, allocations: 35.94 kB / 281.6 MB, free: 8.051 MB / 266.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.002957/0.02059, allocations: 447.9 kB / 282.1 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.02093, allocations: 107.5 kB / 282.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.02094, allocations: 0 / 282.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.02108, allocations: 59.55 kB / 282.2 MB, free: 7.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.0215, allocations: 63.8 kB / 282.3 MB, free: 7.562 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007276/0.02222, allocations: 342.2 kB / 282.6 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.02237, allocations: 127.8 kB / 282.8 MB, free: 7.051 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.098e-05/0.02246, allocations: 25.61 kB / 282.8 MB, free: 7.023 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.626e-05/0.02252, allocations: 20.5 kB / 282.8 MB, free: 7 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02252, allocations: 0 / 282.8 MB, free: 7 MB / 266.7 MB Notification: Performance of Templates: time 0.008086/0.03061, allocations: 2.909 MB / 285.7 MB, free: 4.129 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.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.513052894035354]