Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001431/0.001431, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.002076/0.002076, allocations: 173.9 kB / 25.33 MB, free: 9.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9368/0.9368, allocations: 158.6 MB / 187.2 MB, free: 2.469 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.344e-06/2.344e-06, allocations: 0 / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.311e-05/3.546e-05, allocations: 5.406 kB / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003349/0.003384, allocations: 1.856 MB / 252.9 MB, free: 1.734 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.005037, allocations: 0.9438 MB / 253.8 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.005168, allocations: 4 kB / 253.8 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007023/0.00587, allocations: 179.3 kB / 254 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003197/0.00619, allocations: 135.4 kB / 254.1 MB, free: 480 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.006569, allocations: 155.5 kB / 254.3 MB, free: 324 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.006868, allocations: 203.4 kB / 254.5 MB, free: 120 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.006991, allocations: 9.812 kB / 254.5 MB, free: 112 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.00718, allocations: 115.7 kB / 254.6 MB, free: 15.99 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.007319, allocations: 79.72 kB / 254.7 MB, free: 15.92 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.00735, allocations: 12 kB / 254.7 MB, free: 15.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.007503, allocations: 59.89 kB / 254.8 MB, free: 15.85 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.069e-05/0.007584, allocations: 51.78 kB / 254.8 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.007658, allocations: 47.84 kB / 254.8 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.007977, allocations: 171.3 kB / 255 MB, free: 15.58 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.00798, allocations: 0 / 255 MB, free: 15.58 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.007981, allocations: 0 / 255 MB, free: 15.58 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.007987, allocations: 0 / 255 MB, free: 15.58 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.0007045/0.008691, allocations: 0.5518 MB / 255.6 MB, free: 14.99 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.008731, allocations: 15.92 kB / 255.6 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.008799, allocations: 24.8 kB / 255.6 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.009085, allocations: 212.4 kB / 255.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.009104, allocations: 4.375 kB / 255.8 MB, free: 14.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.009123, allocations: 8.375 kB / 255.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.009327, allocations: 112.9 kB / 255.9 MB, free: 14.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.009341, allocations: 3.938 kB / 255.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.009354, allocations: 0 / 255.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.009362, allocations: 0 / 255.9 MB, free: 14.56 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.221e-05/0.009434, allocations: 27.92 kB / 256 MB, free: 14.54 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006444/0.01008, allocations: 0.719 MB / 256.7 MB, free: 13.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.01027, allocations: 125.4 kB / 256.8 MB, free: 13.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.947e-05/0.01033, allocations: 39.05 kB / 256.8 MB, free: 13.55 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.01035, allocations: 4 kB / 256.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.01053, allocations: 128 kB / 257 MB, free: 13.4 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.01053, allocations: 0 / 257 MB, free: 13.4 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003314/0.01086, allocations: 137.5 kB / 257.1 MB, free: 13.26 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.01093, allocations: 110.8 kB / 257.2 MB, free: 13.12 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.01119, allocations: 284.3 kB / 257.5 MB, free: 12.83 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.01121, allocations: 33.83 kB / 257.5 MB, free: 12.79 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.01132, allocations: 170.9 kB / 257.7 MB, free: 12.62 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.258e-05/0.01136, allocations: 35.8 kB / 257.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.1e-05/0.01142, allocations: 39.3 kB / 257.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.01159, allocations: 0.5001 MB / 258.3 MB, free: 12.03 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.083e-05/0.01164, allocations: 23.92 kB / 258.3 MB, free: 12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.013e-05/0.01173, allocations: 99.75 kB / 258.4 MB, free: 11.88 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.01184, allocations: 86.3 kB / 258.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01184, allocations: 32 / 258.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001976/0.01204, allocations: 125.4 kB / 258.6 MB, free: 11.64 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.01205, allocations: 8 kB / 258.6 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.01206, allocations: 0 / 258.6 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.01208, allocations: 4.625 kB / 258.6 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.66e-05/0.01217, allocations: 19.98 kB / 258.6 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.01217, allocations: 0 / 258.6 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.118e-05/0.01224, allocations: 8 kB / 258.6 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.01225, allocations: 4 kB / 258.6 MB, free: 11.6 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 0.0001181/0.01237, allocations: 188.5 kB / 258.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.01241, allocations: 23.86 kB / 258.9 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.0126, allocations: 87.45 kB / 258.9 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.0126, allocations: 4 kB / 258.9 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.01261, allocations: 3.984 kB / 258.9 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.01261, allocations: 7.922 kB / 259 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.01282, allocations: 192.4 kB / 259.1 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.01282, allocations: 4 kB / 259.1 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.017e-05/0.01285, allocations: 4 kB / 259.1 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.01286, allocations: 0 / 259.1 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.01287, allocations: 12 kB / 259.2 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.01287, allocations: 0 / 259.2 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.01287, allocations: 4 kB / 259.2 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.01309, allocations: 179.6 kB / 259.3 MB, free: 10.81 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.605e-05/0.01311, allocations: 15.86 kB / 259.4 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.01314, allocations: 11.98 kB / 259.4 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/0.0132, allocations: 4 kB / 259.4 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/0.01327, allocations: 19.97 kB / 259.4 MB, free: 10.76 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.01328, allocations: 4 kB / 259.4 MB, free: 10.76 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001499/0.01343, allocations: 205.1 kB / 259.6 MB, free: 10.56 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01343, allocations: 4 kB / 259.6 MB, free: 10.56 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002878/0.01372, allocations: 35.94 kB / 259.6 MB, free: 10.52 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.001045/0.01477, allocations: 397.7 kB / 260 MB, free: 10.17 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001936/0.01496, allocations: 75.47 kB / 260.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.01496, allocations: 0 / 260.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.213e-05/0.01503, allocations: 43.86 kB / 260.1 MB, free: 10.05 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.01535, allocations: 68.59 kB / 260.2 MB, free: 9.98 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005454/0.01589, allocations: 313.4 kB / 260.5 MB, free: 9.637 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.969e-05/0.01595, allocations: 83.94 kB / 260.6 MB, free: 9.535 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.027e-05/0.01602, allocations: 25.45 kB / 260.6 MB, free: 9.512 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.01608, allocations: 24.5 kB / 260.6 MB, free: 9.488 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01608, allocations: 4 kB / 260.6 MB, free: 9.484 MB / 250.7 MB Notification: Performance of Templates: time 0.006103/0.02218, allocations: 2.866 MB / 263.5 MB, free: 6.617 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.87033368088305]