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.00129/0.00129, allocations: 111.1 kB / 20.44 MB, free: 1.336 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.001448/0.001448, allocations: 207.6 kB / 23.72 MB, free: 4.527 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001664/0.001664, allocations: 51.91 kB / 378.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2895, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004181/0.2936, allocations: 1.81 MB / 433.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002535/0.2962, allocations: 1.122 MB / 434.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.2963, allocations: 0 / 434.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009828/0.2973, allocations: 179.4 kB / 434.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005257/0.2978, allocations: 179.2 kB / 434.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.2983, allocations: 141.8 kB / 435 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.2987, allocations: 223.4 kB / 435.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.2989, allocations: 9.75 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.2991, allocations: 87.62 kB / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.2993, allocations: 99.58 kB / 435.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.2993, allocations: 12 kB / 435.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.2995, allocations: 63.95 kB / 435.5 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.2996, allocations: 39.84 kB / 435.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.2997, allocations: 71.55 kB / 435.6 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004356/0.3001, allocations: 229.3 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3001, allocations: 0 / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3001, allocations: 0 / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3001, allocations: 0 / 435.8 MB, free: 2.477 MB / 334.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.001101/0.3012, allocations: 466.7 kB / 436.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.3013, allocations: 12.03 kB / 436.3 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.854e-05/0.3014, allocations: 20.8 kB / 436.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.3017, allocations: 213.1 kB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.3018, allocations: 4.375 kB / 436.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.3018, allocations: 12.12 kB / 436.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.3021, allocations: 105.1 kB / 436.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3021, allocations: 3.938 kB / 436.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.3021, allocations: 4 kB / 436.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.3021, allocations: 7.984 kB / 436.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.3022, allocations: 51.91 kB / 436.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007305/0.303, allocations: 0.5476 MB / 437.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.3033, allocations: 119.9 kB / 437.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.3034, allocations: 54.55 kB / 437.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.3034, allocations: 3.938 kB / 437.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.3037, allocations: 121.9 kB / 437.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.3037, allocations: 0 / 437.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005152/0.3042, allocations: 181.4 kB / 437.7 MB, free: 400 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/0.3043, allocations: 110.9 kB / 437.8 MB, free: 264 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.3047, allocations: 289.1 kB / 438.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.3047, allocations: 33.7 kB / 438.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3048, allocations: 124.1 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.3048, allocations: 31.81 kB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.3049, allocations: 33.7 kB / 438.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.3051, allocations: 342.8 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-05/0.3052, allocations: 27.98 kB / 438.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.3053, allocations: 109.5 kB / 438.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.3055, allocations: 96.25 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3055, allocations: 3.938 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002943/0.3058, allocations: 154 kB / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3058, allocations: 4 kB / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3058, allocations: 0 / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.3059, allocations: 4 kB / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.535e-05/0.306, allocations: 20.02 kB / 439.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.306, allocations: 7.984 kB / 439.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.3061, allocations: 15.98 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.3061, allocations: 4 kB / 439.1 MB, free: 14.91 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 0.0001492/0.3062, allocations: 150.3 kB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.731e-05/0.3063, allocations: 19.86 kB / 439.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.3066, allocations: 123.2 kB / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3066, allocations: 4 kB / 439.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3066, allocations: 0 / 439.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3066, allocations: 4 kB / 439.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000208/0.3068, allocations: 185.1 kB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3068, allocations: 0 / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.334e-05/0.3068, allocations: 4 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.3068, allocations: 4 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.3068, allocations: 0 / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.3068, allocations: 4 kB / 439.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3068, allocations: 3.938 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003312/0.3072, allocations: 186.6 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.3072, allocations: 19.91 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.3072, allocations: 12 kB / 439.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3073, allocations: 7.984 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.319e-05/0.3074, allocations: 19.97 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3074, allocations: 4 kB / 439.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.3077, allocations: 216.5 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3077, allocations: 0 / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.3079, allocations: 51.81 kB / 440.1 MB, free: 13.84 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.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.001697/0.3096, allocations: 455.5 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003065/0.3099, allocations: 95.89 kB / 440.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3099, allocations: 0 / 440.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.3101, allocations: 47.92 kB / 440.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.3105, allocations: 59.02 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007139/0.3112, allocations: 349.3 kB / 441.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001327/0.3113, allocations: 123.8 kB / 441.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.806e-05/0.3114, allocations: 33.61 kB / 441.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.716e-05/0.3115, allocations: 19.44 kB / 441.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3115, allocations: 3.938 kB / 441.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Templates: time 0.007467/0.3189, allocations: 3.034 MB / 444.3 MB, free: 9.809 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/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: 4.668189802207053]