Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.002448/0.002448, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002703/0.002703, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 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.541/1.541, allocations: 173.3 MB / 200.8 MB, free: 9.336 MB / 186.7 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.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 267.3 MB, free: 6.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.518e-05, allocations: 2.312 kB / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003659/0.003684, allocations: 1.825 MB / 269.1 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.005702, allocations: 1.009 MB / 270.1 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.005785, allocations: 7.938 kB / 270.1 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006705/0.006455, allocations: 171.4 kB / 270.3 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003396/0.006795, allocations: 131.4 kB / 270.4 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004626/0.007257, allocations: 179.4 kB / 270.6 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002964/0.007554, allocations: 211.3 kB / 270.8 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.589e-05/0.00765, allocations: 13.81 kB / 270.8 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.007843, allocations: 115.6 kB / 270.9 MB, free: 3.102 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.00799, allocations: 79.78 kB / 271 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.008025, allocations: 12 kB / 271 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.008194, allocations: 59.89 kB / 271.1 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.449e-05/0.008278, allocations: 43.84 kB / 271.1 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.323e-05/0.008362, allocations: 51.84 kB / 271.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.008731, allocations: 219.2 kB / 271.4 MB, free: 2.645 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.008733, allocations: 0 / 271.4 MB, free: 2.645 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.008734, allocations: 0 / 271.4 MB, free: 2.645 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.008738, allocations: 0 / 271.4 MB, free: 2.645 MB / 250.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.0009498/0.009688, allocations: 0.567 MB / 272 MB, free: 2.035 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.009721, allocations: 8.922 kB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.0098, allocations: 28.78 kB / 272 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.01016, allocations: 203.6 kB / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.01018, allocations: 12.36 kB / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.0102, allocations: 7.938 kB / 272.2 MB, free: 1.754 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.01046, allocations: 120.3 kB / 272.3 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.01047, allocations: 4 kB / 272.3 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.01048, allocations: 0 / 272.3 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.01048, allocations: 0 / 272.3 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.01065, allocations: 51.91 kB / 272.4 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008623/0.01151, allocations: 0.7347 MB / 273.1 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.01184, allocations: 149.4 kB / 273.3 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.01197, allocations: 54.98 kB / 273.3 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.001e-05/0.01201, allocations: 4 kB / 273.3 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.01229, allocations: 136.1 kB / 273.5 MB, free: 368 kB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.01229, allocations: 0 / 273.5 MB, free: 368 kB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005327/0.01282, allocations: 173.4 kB / 273.6 MB, free: 188 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.01291, allocations: 106.8 kB / 273.7 MB, free: 56 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000429/0.01334, allocations: 340.3 kB / 274.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.01337, allocations: 29.83 kB / 274.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.01352, allocations: 186.9 kB / 274.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.01357, allocations: 31.73 kB / 274.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.871e-05/0.01365, allocations: 43.38 kB / 274.4 MB, free: 15.4 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005596/0.01421, allocations: 0.5196 MB / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.284e-05/0.0143, allocations: 27.98 kB / 274.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.01447, allocations: 119.7 kB / 275 MB, free: 14.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.01468, allocations: 106.9 kB / 275.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.01469, allocations: 8.031 kB / 275.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003084/0.015, allocations: 137.5 kB / 275.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.01501, allocations: 8 kB / 275.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.01502, allocations: 0 / 275.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.01504, allocations: 7.938 kB / 275.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.01514, allocations: 19.98 kB / 275.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.01515, allocations: 0 / 275.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.01525, allocations: 19.88 kB / 275.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.01526, allocations: 7.938 kB / 275.3 MB, free: 14.36 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.000169/0.01543, allocations: 188.5 kB / 275.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.01548, allocations: 23.86 kB / 275.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.01574, allocations: 107.4 kB / 275.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.01574, allocations: 0 / 275.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.964e-06/0.01575, allocations: 3.984 kB / 275.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01576, allocations: 4 kB / 275.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.01606, allocations: 208.5 kB / 275.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.01606, allocations: 0 / 275.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.081e-05/0.0161, allocations: 11.92 kB / 275.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.0161, allocations: 4 kB / 275.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.01611, allocations: 4 kB / 275.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.01612, allocations: 4 kB / 275.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.01612, allocations: 0 / 275.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003807/0.0165, allocations: 203.6 kB / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.01655, allocations: 23.95 kB / 276.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.01658, allocations: 8 kB / 276.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.963e-05/0.01667, allocations: 11.94 kB / 276.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.834e-05/0.01676, allocations: 15.97 kB / 276.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.01678, allocations: 4 kB / 276.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002449/0.01703, allocations: 233.1 kB / 276.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01703, allocations: 0 / 276.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002791/0.0173, allocations: 43.88 kB / 276.4 MB, free: 13.19 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.002948/0.02025, allocations: 443.2 kB / 276.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.02062, allocations: 103.5 kB / 276.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.02062, allocations: 0 / 276.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.02077, allocations: 55.92 kB / 277 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.02117, allocations: 63.7 kB / 277.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007152/0.02188, allocations: 338 kB / 277.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.02202, allocations: 115.6 kB / 277.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.57e-05/0.0221, allocations: 29.61 kB / 277.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.02216, allocations: 20.5 kB / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02216, allocations: 0 / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of Templates: time 0.007864/0.03003, allocations: 2.873 MB / 280.4 MB, free: 9.332 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.428611184936017]