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.001133/0.001133, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001623/0.002756, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001019/0.001019, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001496/0.002516, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.016/1.016, allocations: 173.3 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08751/1.103, allocations: 52.5 MB / 238.3 MB, free: 4.438 MB / 234.7 MB " [Timeout remaining time 179] 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.943e-06/1.943e-06, allocations: 0 / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/2.036e-05, allocations: 2.312 kB / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002425/0.002445, allocations: 1.892 MB / 241.4 MB, free: 1.285 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.003714, allocations: 1.04 MB / 242.5 MB, free: 248 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.747e-05/0.003812, allocations: 4 kB / 242.5 MB, free: 244 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004261/0.004238, allocations: 151.5 kB / 242.6 MB, free: 92 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002263/0.004464, allocations: 143.3 kB / 242.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.004783, allocations: 175.3 kB / 242.9 MB, free: 15.78 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.004997, allocations: 207.3 kB / 243.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.212e-05/0.005089, allocations: 10.45 kB / 243.1 MB, free: 15.56 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.005263, allocations: 156.6 kB / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.005379, allocations: 83.72 kB / 243.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.005402, allocations: 12 kB / 243.4 MB, free: 15.31 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.005528, allocations: 55.91 kB / 243.4 MB, free: 15.26 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.144e-05/0.005589, allocations: 43.86 kB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.806e-05/0.005637, allocations: 35.88 kB / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.005866, allocations: 163.3 kB / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.576e-05/0.005881, allocations: 0 / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005882, allocations: 0 / 243.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.005897, allocations: 0 / 243.7 MB, free: 15.02 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.0005985/0.006495, allocations: 461 kB / 244.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.006526, allocations: 12.03 kB / 244.1 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.006566, allocations: 16.91 kB / 244.2 MB, free: 14.51 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.006769, allocations: 193.5 kB / 244.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.006785, allocations: 4.375 kB / 244.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.006799, allocations: 15.92 kB / 244.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.006934, allocations: 91.91 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.006942, allocations: 0 / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.00695, allocations: 3.938 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.006955, allocations: 4 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.301e-05/0.006998, allocations: 30.73 kB / 244.5 MB, free: 14.12 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000352/0.00735, allocations: 450.3 kB / 244.9 MB, free: 13.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.007483, allocations: 138.5 kB / 245.1 MB, free: 13.49 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.112e-05/0.007514, allocations: 30.58 kB / 245.1 MB, free: 13.45 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.007534, allocations: 4 kB / 245.1 MB, free: 13.45 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.007671, allocations: 112.6 kB / 245.2 MB, free: 13.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.007672, allocations: 4 kB / 245.2 MB, free: 13.31 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001544/0.007827, allocations: 92.86 kB / 245.3 MB, free: 13.21 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.007874, allocations: 106.8 kB / 245.4 MB, free: 13.09 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.008022, allocations: 230.7 kB / 245.6 MB, free: 12.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.008035, allocations: 29.64 kB / 245.7 MB, free: 12.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.663e-05/0.008082, allocations: 112.5 kB / 245.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.008109, allocations: 27.77 kB / 245.8 MB, free: 12.67 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.903e-05/0.008148, allocations: 33.7 kB / 245.8 MB, free: 12.63 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.584e-05/0.008233, allocations: 338.7 kB / 246.2 MB, free: 12.29 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.678e-05/0.00826, allocations: 14.95 kB / 246.2 MB, free: 12.27 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.87e-05/0.008309, allocations: 78.83 kB / 246.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.815e-05/0.008377, allocations: 73.92 kB / 246.3 MB, free: 12.08 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.008379, allocations: 0 / 246.3 MB, free: 12.08 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.745e-05/0.008477, allocations: 92.36 kB / 246.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.008492, allocations: 8 kB / 246.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.008497, allocations: 0 / 246.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.008507, allocations: 8.109 kB / 246.4 MB, free: 11.97 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.709e-05/0.008574, allocations: 16 kB / 246.5 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.00858, allocations: 7.938 kB / 246.5 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/0.008629, allocations: 19.88 kB / 246.5 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.008636, allocations: 7.938 kB / 246.5 MB, free: 11.92 MB / 250.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.333e-05/0.008709, allocations: 128.5 kB / 246.6 MB, free: 11.78 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.008726, allocations: 11.98 kB / 246.6 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.00883, allocations: 91.34 kB / 246.7 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.008833, allocations: 0 / 246.7 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.008834, allocations: 4 kB / 246.7 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.008838, allocations: 4 kB / 246.7 MB, free: 11.67 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.008946, allocations: 113.9 kB / 246.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.00895, allocations: 8 kB / 246.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.288e-05/0.008972, allocations: 4 kB / 246.9 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.97e-05/0.008992, allocations: 23.8 kB / 246.9 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.008994, allocations: 0 / 246.9 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-06/0.009001, allocations: 4 kB / 246.9 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.009003, allocations: 3.984 kB / 246.9 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.009005, allocations: 3.984 kB / 246.9 MB, free: 11.49 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.009112, allocations: 132.3 kB / 247 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.009134, allocations: 8 kB / 247 MB, free: 11.33 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.52e-05/0.009179, allocations: 7.984 kB / 247 MB, free: 11.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.00922, allocations: 19.97 kB / 247.1 MB, free: 11.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.009231, allocations: 3.984 kB / 247.1 MB, free: 11.3 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.13e-05/0.009292, allocations: 77.62 kB / 247.1 MB, free: 11.22 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009292, allocations: 0 / 247.1 MB, free: 11.22 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001465/0.009438, allocations: 36 kB / 247.2 MB, free: 11.18 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.001202/0.01064, allocations: 0.5631 MB / 247.7 MB, free: 10.89 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.01076, allocations: 52.77 kB / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/0.01077, allocations: 4 kB / 247.8 MB, free: 10.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.405e-05/0.01081, allocations: 36.78 kB / 247.8 MB, free: 10.8 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.01101, allocations: 75.55 kB / 247.9 MB, free: 10.73 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.01155, allocations: 324.8 kB / 248.2 MB, free: 10.38 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.256e-05/0.01159, allocations: 83.97 kB / 248.3 MB, free: 10.27 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.03e-05/0.01164, allocations: 21.62 kB / 248.3 MB, free: 10.25 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.688e-05/0.01173, allocations: 83.3 kB / 248.4 MB, free: 10.17 MB / 250.7 MB Notification: Performance of SimCode: time 1.342e-06/0.01173, allocations: 0 / 248.4 MB, free: 10.17 MB / 250.7 MB Notification: Performance of Templates: time 0.00481/0.01654, allocations: 3.108 MB / 251.5 MB, free: 7.109 MB / 250.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 -ignoreHideResult -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","",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.6213040947914124]