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.0008529/0.0008529, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.0009078/0.0009078, allocations: 141.1 kB / 24.54 MB, free: 32 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 0.9245/0.9245, allocations: 173.3 MB / 201.1 MB, free: 9.34 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.924e-06/1.924e-06, allocations: 0 / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.89e-05, allocations: 6.25 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003039/0.003068, allocations: 1.864 MB / 269.8 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.004664, allocations: 1.013 MB / 270.9 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.004764, allocations: 0 / 270.9 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006542/0.005419, allocations: 175.3 kB / 271 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.005698, allocations: 135.4 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003639/0.006062, allocations: 179.4 kB / 271.3 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.006312, allocations: 207.3 kB / 271.5 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.988e-05/0.006412, allocations: 9.812 kB / 271.5 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.006568, allocations: 115.7 kB / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.006702, allocations: 75.78 kB / 271.7 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.00673, allocations: 8 kB / 271.7 MB, free: 2.672 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.006868, allocations: 67.83 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.278e-05/0.006951, allocations: 51.77 kB / 271.9 MB, free: 2.555 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.284e-05/0.007023, allocations: 43.86 kB / 271.9 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.007323, allocations: 163.5 kB / 272.1 MB, free: 2.352 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.007325, allocations: 0 / 272.1 MB, free: 2.352 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.007326, allocations: 4 kB / 272.1 MB, free: 2.348 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.007332, allocations: 3.938 kB / 272.1 MB, free: 2.344 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.0007849/0.008116, allocations: 0.5555 MB / 272.6 MB, free: 1.746 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.008159, allocations: 8.922 kB / 272.6 MB, free: 1.738 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.285e-05/0.008232, allocations: 24.84 kB / 272.7 MB, free: 1.715 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.008538, allocations: 212.4 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.008563, allocations: 4.375 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.008586, allocations: 11.94 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.008789, allocations: 108.3 kB / 273 MB, free: 1.332 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.008802, allocations: 4 kB / 273 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.008814, allocations: 0 / 273 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.008825, allocations: 4 kB / 273 MB, free: 1.324 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.291e-05/0.008918, allocations: 23.92 kB / 273 MB, free: 1.301 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.009564, allocations: 0.719 MB / 273.7 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.009749, allocations: 121.4 kB / 273.8 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.245e-05/0.009811, allocations: 39.06 kB / 273.9 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.009834, allocations: 4 kB / 273.9 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.01001, allocations: 128 kB / 274 MB, free: 172 kB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.01001, allocations: 0 / 274 MB, free: 172 kB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003071/0.01032, allocations: 133.9 kB / 274.1 MB, free: 32 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.01038, allocations: 106.8 kB / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/0.01063, allocations: 296.3 kB / 274.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.01065, allocations: 29.64 kB / 274.6 MB, free: 15.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.01075, allocations: 182.8 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.502e-05/0.01078, allocations: 27.75 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/0.01084, allocations: 43.48 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.01099, allocations: 0.5078 MB / 275.3 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.213e-05/0.01103, allocations: 12 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.387e-05/0.01111, allocations: 99.81 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.01122, allocations: 86.42 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01122, allocations: 0 / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000179/0.0114, allocations: 121.6 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.01141, allocations: 8 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.01142, allocations: 0 / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.01144, allocations: 4 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-05/0.01152, allocations: 15.98 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.01153, allocations: 3.938 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.327e-05/0.0116, allocations: 15.89 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.01162, allocations: 11.94 kB / 275.7 MB, free: 14.35 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.0001088/0.01172, allocations: 176.4 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.01177, allocations: 23.86 kB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001813/0.01195, allocations: 111.4 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.01195, allocations: 0 / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.01195, allocations: 0 / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.01196, allocations: 4 kB / 276 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.01214, allocations: 184.6 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01214, allocations: 0 / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.872e-05/0.01217, allocations: 8 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.01217, allocations: 4 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.01218, allocations: 0 / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.01219, allocations: 4 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.01219, allocations: 7.984 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002108/0.0124, allocations: 179.5 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.01243, allocations: 27.8 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.01246, allocations: 3.984 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.098e-05/0.01252, allocations: 8 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.986e-05/0.01258, allocations: 15.97 kB / 276.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.0126, allocations: 8 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001562/0.01275, allocations: 205.1 kB / 276.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01275, allocations: 0 / 276.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002655/0.01302, allocations: 43.88 kB / 276.7 MB, free: 13.27 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.001052/0.01407, allocations: 397.8 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001863/0.01426, allocations: 75.7 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.01426, allocations: 4 kB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.648e-05/0.01434, allocations: 39.61 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.01465, allocations: 59.58 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005568/0.0152, allocations: 322.4 kB / 277.6 MB, free: 12.49 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.573e-05/0.01526, allocations: 75.98 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.722e-05/0.01533, allocations: 29.59 kB / 277.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.466e-05/0.01538, allocations: 24.5 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.01538, allocations: 0 / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of Templates: time 0.006061/0.02144, allocations: 2.865 MB / 280.6 MB, free: 9.516 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","",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.8947544167749584]