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.001324/0.001324, allocations: 80.95 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001343/0.001343, allocations: 146.5 kB / 23.94 MB, free: 4.16 MB / 14.72 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.446/1.446, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.1 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 2.766e-06/2.766e-06, allocations: 0.8438 kB / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.046e-05/3.322e-05, allocations: 3.5 kB / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002964/0.002998, allocations: 1.779 MB / 320.7 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.004878, allocations: 0.9821 MB / 321.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.005027, allocations: 2.906 kB / 321.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008577/0.005885, allocations: 174.2 kB / 321.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004196/0.006304, allocations: 129.8 kB / 322 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006383/0.006943, allocations: 181.7 kB / 322.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003701/0.007313, allocations: 212.2 kB / 322.4 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.007439, allocations: 14.69 kB / 322.4 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002737/0.007712, allocations: 117.7 kB / 322.5 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.007959, allocations: 79.45 kB / 322.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.093e-05/0.00801, allocations: 10.84 kB / 322.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.008255, allocations: 60.55 kB / 322.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.008363, allocations: 47.27 kB / 322.7 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.008492, allocations: 44.7 kB / 322.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004545/0.008946, allocations: 225.9 kB / 322.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.00895, allocations: 0 / 322.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.00895, allocations: 0 / 322.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.106e-06/0.008959, allocations: 1.156 kB / 322.9 MB, free: 1.137 MB / 286.1 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.001002/0.009961, allocations: 472.9 kB / 323.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.01001, allocations: 10.3 kB / 323.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.971e-05/0.0101, allocations: 17.97 kB / 323.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.01046, allocations: 195.3 kB / 323.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.01048, allocations: 2.891 kB / 323.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.0105, allocations: 12.59 kB / 323.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.01077, allocations: 110.1 kB / 323.7 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.01078, allocations: 0 / 323.7 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.0108, allocations: 6.391 kB / 323.8 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.0108, allocations: 1.781 kB / 323.8 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.01097, allocations: 58.25 kB / 323.8 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.01168, allocations: 0.5341 MB / 324.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.01201, allocations: 132.2 kB / 324.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.01214, allocations: 47.55 kB / 324.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.01217, allocations: 2.625 kB / 324.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.01245, allocations: 119.5 kB / 324.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.944e-06/0.01245, allocations: 4 kB / 324.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005596/0.01301, allocations: 178.2 kB / 324.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.01309, allocations: 106.3 kB / 324.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.01345, allocations: 291.5 kB / 325.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.01348, allocations: 27.08 kB / 325.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.01359, allocations: 122.7 kB / 325.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.603e-05/0.01363, allocations: 30.45 kB / 325.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.516e-05/0.0137, allocations: 36.77 kB / 325.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.01387, allocations: 335 kB / 325.7 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.01398, allocations: 33.64 kB / 325.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.01414, allocations: 111 kB / 325.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.01435, allocations: 96.52 kB / 326 MB, free: 14.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.01435, allocations: 1.312 kB / 326 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003494/0.0147, allocations: 145.2 kB / 326.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.01472, allocations: 11.41 kB / 326.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.01473, allocations: 0 / 326.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.01475, allocations: 2.922 kB / 326.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.01486, allocations: 13.66 kB / 326.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.01487, allocations: 2.438 kB / 326.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.01501, allocations: 23.52 kB / 326.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.01503, allocations: 8.531 kB / 326.2 MB, free: 14.54 MB / 302.1 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.00015/0.01518, allocations: 146.9 kB / 326.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.01523, allocations: 25.55 kB / 326.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.01551, allocations: 127.1 kB / 326.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.01552, allocations: 6.094 kB / 326.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.01552, allocations: 1.094 kB / 326.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.01553, allocations: 2.547 kB / 326.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.01579, allocations: 169.9 kB / 326.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.01579, allocations: 1.156 kB / 326.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.491e-05/0.01583, allocations: 15.88 kB / 326.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.01584, allocations: 1.094 kB / 326.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.01585, allocations: 3.422 kB / 326.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.01586, allocations: 1.938 kB / 326.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.01586, allocations: 5.188 kB / 326.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000409/0.01627, allocations: 184.6 kB / 326.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.137e-05/0.01632, allocations: 24.02 kB / 326.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.01636, allocations: 3.938 kB / 326.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.01647, allocations: 9.203 kB / 326.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.01654, allocations: 21.41 kB / 326.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.01656, allocations: 4.812 kB / 326.9 MB, free: 14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000287/0.01685, allocations: 213.5 kB / 327.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01685, allocations: 0 / 327.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.01716, allocations: 48.67 kB / 327.2 MB, free: 13.86 MB / 302.1 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.001765/0.01893, allocations: 447.1 kB / 327.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003149/0.01924, allocations: 90.5 kB / 327.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01925, allocations: 5.281 kB / 327.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.01938, allocations: 46.88 kB / 327.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.01978, allocations: 57.92 kB / 327.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007359/0.02052, allocations: 353.7 kB / 328.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.02066, allocations: 119.3 kB / 328.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.537e-05/0.02075, allocations: 26.7 kB / 328.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.02081, allocations: 21.11 kB / 328.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.02081, allocations: 0 / 328.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of Templates: time 0.008526/0.02934, allocations: 2.836 MB / 331.2 MB, free: 12.55 MB / 302.1 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.499735999852419]