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.001626/0.001626, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001964/0.001964, allocations: 186.9 kB / 23.72 MB, free: 4.68 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.476/1.476, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.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 0.001751/0.001751, allocations: 47.91 kB / 370.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2961, allocations: 52.18 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003595/0.2997, allocations: 1.866 MB / 425 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.3017, allocations: 1.056 MB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.3018, allocations: 3.938 kB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006637/0.3025, allocations: 171.5 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.3028, allocations: 127.5 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.3033, allocations: 178.2 kB / 426.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002976/0.3036, allocations: 215.3 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.679e-05/0.3037, allocations: 13.73 kB / 426.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.3039, allocations: 83.69 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.304, allocations: 95.59 kB / 426.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.304, allocations: 12 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.3042, allocations: 51.97 kB / 427 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.421e-05/0.3043, allocations: 55.81 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.901e-05/0.3044, allocations: 79.48 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.3047, allocations: 216.4 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.644e-06/0.3047, allocations: 0 / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3047, allocations: 0 / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3047, allocations: 4 kB / 427.3 MB, free: 10.47 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.0008815/0.3056, allocations: 462.7 kB / 427.8 MB, free: 9.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3057, allocations: 16.02 kB / 427.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.265e-05/0.3057, allocations: 20.8 kB / 427.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.3061, allocations: 204.9 kB / 428 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.3061, allocations: 7.984 kB / 428 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.3061, allocations: 4 kB / 428 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.3064, allocations: 117.9 kB / 428.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3064, allocations: 0 / 428.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.3064, allocations: 4 kB / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.3064, allocations: 0 / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.3066, allocations: 51.91 kB / 428.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007189/0.3073, allocations: 0.5785 MB / 428.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.3076, allocations: 119.9 kB / 428.9 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.3077, allocations: 50.5 kB / 428.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.3077, allocations: 3.984 kB / 428.9 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/0.3079, allocations: 117.9 kB / 429 MB, free: 8.539 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.3079, allocations: 0 / 429 MB, free: 8.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005078/0.3084, allocations: 177.8 kB / 429.2 MB, free: 8.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.73e-05/0.3085, allocations: 136.5 kB / 429.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.3089, allocations: 284.9 kB / 429.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.3089, allocations: 41.81 kB / 429.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.309, allocations: 120.4 kB / 429.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.309, allocations: 23.8 kB / 429.8 MB, free: 7.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.358e-05/0.3091, allocations: 37.64 kB / 429.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3092, allocations: 330.8 kB / 430.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3093, allocations: 35.98 kB / 430.2 MB, free: 7.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.3095, allocations: 81.98 kB / 430.3 MB, free: 7.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001997/0.3097, allocations: 100.2 kB / 430.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3097, allocations: 0 / 430.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003045/0.31, allocations: 141.5 kB / 430.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.31, allocations: 11.92 kB / 430.5 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.31, allocations: 4 kB / 430.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.31, allocations: 0 / 430.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.3101, allocations: 19.88 kB / 430.5 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.3101, allocations: 4 kB / 430.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.3103, allocations: 19.88 kB / 430.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.3103, allocations: 11.98 kB / 430.6 MB, free: 6.875 MB / 334.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.0001457/0.3104, allocations: 150.7 kB / 430.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.3105, allocations: 23.86 kB / 430.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002525/0.3107, allocations: 107.4 kB / 430.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3107, allocations: 3.938 kB / 430.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3107, allocations: 192 / 430.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3108, allocations: 8 kB / 430.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.311, allocations: 208.6 kB / 431.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.311, allocations: 0 / 431.1 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.581e-05/0.311, allocations: 12 kB / 431.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.311, allocations: 7.938 kB / 431.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.311, allocations: 3.984 kB / 431.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.311, allocations: 7.938 kB / 431.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.311, allocations: 0 / 431.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003223/0.3114, allocations: 174.6 kB / 431.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.3114, allocations: 23.84 kB / 431.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.3114, allocations: 4 kB / 431.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.3116, allocations: 15.92 kB / 431.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/0.3116, allocations: 15.97 kB / 431.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3116, allocations: 7.938 kB / 431.3 MB, free: 6.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3118, allocations: 216.5 kB / 431.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3118, allocations: 0 / 431.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000267/0.3121, allocations: 31.95 kB / 431.6 MB, free: 5.789 MB / 334.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 (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.001497/0.3136, allocations: 430 kB / 432 MB, free: 5.523 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.3139, allocations: 91.83 kB / 432.1 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3139, allocations: 0 / 432.1 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.3141, allocations: 47.92 kB / 432.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.3145, allocations: 48.11 kB / 432.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000656/0.3151, allocations: 344.5 kB / 432.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.3155, allocations: 0.7319 MB / 433.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.793e-05/0.3156, allocations: 33.45 kB / 433.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.438e-05/0.3156, allocations: 19.44 kB / 433.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3156, allocations: 0 / 433.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of Templates: time 0.007168/0.3228, allocations: 2.82 MB / 436.1 MB, free: 1.367 MB / 334.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.606059611774981]