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.0007615/0.0007615, allocations: 84 kB / 21.43 MB, free: 3.121 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.002993/0.002993, allocations: 148.2 kB / 24.69 MB, free: 9.438 MB / 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 0.8208/0.8208, allocations: 173.4 MB / 201.2 MB, free: 9.449 MB / 186.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.733e-06/1.733e-06, allocations: 0 / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.64e-05, allocations: 9.453 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00239/0.002416, allocations: 1.788 MB / 321.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.003703, allocations: 0.9778 MB / 322.4 MB, free: 3.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.907e-05/0.003802, allocations: 11.88 kB / 322.4 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005612/0.004363, allocations: 175.4 kB / 322.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.004612, allocations: 123.4 kB / 322.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.005005, allocations: 177.9 kB / 322.9 MB, free: 2.609 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.005265, allocations: 215.3 kB / 323.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.005369, allocations: 17.78 kB / 323.1 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.005509, allocations: 111.7 kB / 323.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.005632, allocations: 79.78 kB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.005655, allocations: 12 kB / 323.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.005783, allocations: 59.89 kB / 323.4 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.728e-05/0.00585, allocations: 47.84 kB / 323.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.668e-05/0.005907, allocations: 43.84 kB / 323.5 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003082/0.006215, allocations: 231.2 kB / 323.7 MB, free: 1.805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.006218, allocations: 0 / 323.7 MB, free: 1.805 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.00622, allocations: 0 / 323.7 MB, free: 1.805 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.006226, allocations: 4 kB / 323.7 MB, free: 1.801 MB / 282.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.000681/0.006907, allocations: 462.7 kB / 324.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.006946, allocations: 8.922 kB / 324.2 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.007006, allocations: 20.84 kB / 324.2 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.007248, allocations: 196.9 kB / 324.4 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.007264, allocations: 8.312 kB / 324.4 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.007279, allocations: 15.88 kB / 324.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.007458, allocations: 105.1 kB / 324.5 MB, free: 0.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.007466, allocations: 8 kB / 324.5 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.007475, allocations: 0 / 324.5 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.007481, allocations: 3.984 kB / 324.5 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.149e-05/0.007573, allocations: 55.91 kB / 324.6 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004869/0.00806, allocations: 0.5321 MB / 325.1 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.008256, allocations: 119.9 kB / 325.2 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.307e-05/0.00832, allocations: 46.55 kB / 325.3 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.008345, allocations: 8 kB / 325.3 MB, free: 72 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/0.008538, allocations: 126 kB / 325.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.225e-06/0.00854, allocations: 0 / 325.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003258/0.008866, allocations: 173.5 kB / 325.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.008932, allocations: 106.8 kB / 325.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/0.009153, allocations: 289.6 kB / 326 MB, free: 15.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.009174, allocations: 33.7 kB / 326 MB, free: 15.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.009246, allocations: 120.1 kB / 326.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.009282, allocations: 39.77 kB / 326.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/0.009332, allocations: 33.7 kB / 326.2 MB, free: 15.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.009439, allocations: 338.8 kB / 326.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.82e-05/0.009498, allocations: 27.98 kB / 326.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.531e-05/0.009583, allocations: 106.8 kB / 326.6 MB, free: 14.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.009706, allocations: 104.7 kB / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.009709, allocations: 0 / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001855/0.009894, allocations: 145.5 kB / 326.9 MB, free: 14.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.009909, allocations: 8 kB / 326.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.009913, allocations: 0 / 326.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.009926, allocations: 4 kB / 326.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.907e-05/0.009986, allocations: 15.94 kB / 326.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.009991, allocations: 0 / 326.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.06e-05/0.01005, allocations: 23.81 kB / 326.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.01006, allocations: 11.94 kB / 327 MB, free: 14.27 MB / 298.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 9.129e-05/0.01015, allocations: 149.8 kB / 327.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.01017, allocations: 19.86 kB / 327.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.01034, allocations: 119.4 kB / 327.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.01035, allocations: 3.984 kB / 327.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01035, allocations: 3.938 kB / 327.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.01035, allocations: 4 kB / 327.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.01049, allocations: 173.1 kB / 327.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01049, allocations: 0 / 327.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.033e-05/0.01051, allocations: 8 kB / 327.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.01052, allocations: 4.125 kB / 327.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.01053, allocations: 12 kB / 327.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.01053, allocations: 3.984 kB / 327.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.01053, allocations: 0 / 327.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001791/0.01071, allocations: 193.3 kB / 327.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.269e-05/0.01073, allocations: 11.91 kB / 327.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.01076, allocations: 11.98 kB / 327.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.848e-05/0.0108, allocations: 7.984 kB / 327.7 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.75e-05/0.01085, allocations: 15.98 kB / 327.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.01087, allocations: 4 kB / 327.7 MB, free: 13.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001337/0.011, allocations: 217.2 kB / 327.9 MB, free: 13.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.011, allocations: 0 / 327.9 MB, free: 13.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001945/0.01119, allocations: 47.81 kB / 327.9 MB, free: 13.21 MB / 298.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.0007444/0.01194, allocations: 444.2 kB / 328.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.01213, allocations: 99.56 kB / 328.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.01214, allocations: 0 / 328.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.013e-05/0.01222, allocations: 64.09 kB / 328.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.01246, allocations: 42.44 kB / 328.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005354/0.01299, allocations: 369.7 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.229e-05/0.01308, allocations: 127.6 kB / 329.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.01313, allocations: 28.44 kB / 329.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.01313, allocations: 0 / 329.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of Templates: time 0.003576/0.01671, allocations: 2.95 MB / 332 MB, free: 9.246 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] 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.431092498824]