Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001944/0.001944, allocations: 111.5 kB / 18.45 MB, free: 4.605 MB / 14.72 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.002698/0.002698, allocations: 208.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 51.92 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.1014, allocations: 53.33 MB / 427.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003351/0.1047, allocations: 1.854 MB / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1068, allocations: 1.192 MB / 430.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.606e-05/0.1069, allocations: 3.938 kB / 430.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.1075, allocations: 171.5 kB / 430.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004082/0.1079, allocations: 174.8 kB / 430.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.1083, allocations: 143.5 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.1086, allocations: 215.4 kB / 431.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.927e-05/0.1087, allocations: 17.55 kB / 431.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001295/0.1088, allocations: 87.62 kB / 431.3 MB, free: 448 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.1089, allocations: 103.5 kB / 431.4 MB, free: 344 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.347e-05/0.109, allocations: 8 kB / 431.4 MB, free: 336 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.1091, allocations: 51.98 kB / 431.5 MB, free: 284 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.725e-05/0.1092, allocations: 51.83 kB / 431.5 MB, free: 232 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1093, allocations: 83.47 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.191/0.3002, allocations: 221.2 kB / 431.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3003, allocations: 0.9375 kB / 431.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3003, allocations: 0.5625 kB / 431.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.3003, allocations: 0 / 431.8 MB, free: 8.461 MB / 350.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.0008843/0.3012, allocations: 0.5302 MB / 432.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3012, allocations: 10.33 kB / 432.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.384e-05/0.3013, allocations: 26.12 kB / 432.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.3015, allocations: 268 kB / 432.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.3015, allocations: 3.469 kB / 432.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.3016, allocations: 11.59 kB / 432.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002247/0.3018, allocations: 117.6 kB / 432.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3018, allocations: 0.9688 kB / 432.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.3018, allocations: 3.719 kB / 432.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.3018, allocations: 2.875 kB / 432.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.302, allocations: 53.81 kB / 432.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005174/0.3025, allocations: 0.6081 MB / 433.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.3027, allocations: 121.9 kB / 433.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.853e-05/0.3028, allocations: 49.09 kB / 433.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3028, allocations: 5.094 kB / 433.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.303, allocations: 117.3 kB / 433.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.3031, allocations: 0.9375 kB / 433.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004553/0.3035, allocations: 180.2 kB / 433.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.3035, allocations: 134.6 kB / 434 MB, free: 6.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.3038, allocations: 291.9 kB / 434.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.3038, allocations: 32.84 kB / 434.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.3039, allocations: 126 kB / 434.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.3039, allocations: 32 kB / 434.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.304, allocations: 33.77 kB / 434.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.853e-05/0.304, allocations: 338.3 kB / 434.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-05/0.3041, allocations: 33.14 kB / 434.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.3042, allocations: 89.42 kB / 435 MB, free: 6.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.3044, allocations: 96.5 kB / 435.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3044, allocations: 1.062 kB / 435.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002338/0.3046, allocations: 146.6 kB / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.3046, allocations: 8.531 kB / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3047, allocations: 0 / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3047, allocations: 5.844 kB / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/0.3048, allocations: 11.38 kB / 435.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3048, allocations: 1.594 kB / 435.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3049, allocations: 16.94 kB / 435.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3049, allocations: 4.562 kB / 435.3 MB, free: 6.094 MB / 350.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 9.759e-05/0.305, allocations: 157.3 kB / 435.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.305, allocations: 22.73 kB / 435.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.422e-05/0.3051, allocations: 29.36 kB / 435.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3051, allocations: 1.469 kB / 435.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3051, allocations: 0.5 kB / 435.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3051, allocations: 4.5 kB / 435.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.3053, allocations: 249 kB / 435.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3053, allocations: 0 / 435.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.811e-05/0.3053, allocations: 7.438 kB / 435.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3053, allocations: 1.938 kB / 435.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3053, allocations: 9.391 kB / 435.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3053, allocations: 1.156 kB / 435.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3053, allocations: 2.25 kB / 435.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.3056, allocations: 180.7 kB / 435.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.3056, allocations: 102.8 kB / 436 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.3057, allocations: 2.719 kB / 436 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3058, allocations: 12.95 kB / 436 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.3058, allocations: 12.95 kB / 436.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3058, allocations: 13.83 kB / 436.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001757/0.306, allocations: 216.9 kB / 436.3 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.306, allocations: 0 / 436.3 MB, free: 5.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002712/0.3063, allocations: 40.73 kB / 436.3 MB, free: 5.473 MB / 350.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.00146/0.3077, allocations: 419.8 kB / 436.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002644/0.308, allocations: 90.66 kB / 436.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.308, allocations: 0.9375 kB / 436.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3081, allocations: 52.88 kB / 436.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003955/0.3085, allocations: 54.25 kB / 436.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006031/0.3091, allocations: 391.4 kB / 437.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.3093, allocations: 0.7303 MB / 438 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.642e-05/0.3094, allocations: 28.69 kB / 438.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3094, allocations: 0 / 438.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of Templates: time 0.005864/0.3152, allocations: 2.946 MB / 441 MB, free: 4.094 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.547678510978585]