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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 102.2 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007383/0.0007383, allocations: 43.94 kB / 350 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2023, allocations: 49.44 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002578/0.205, allocations: 1.881 MB / 401.3 MB, free: 31.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.2062, allocations: 1.02 MB / 402.4 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.367e-05/0.2063, allocations: 0 / 402.4 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005996/0.2069, allocations: 159.6 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.2072, allocations: 111.7 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.2075, allocations: 154 kB / 402.8 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001745/0.2077, allocations: 203.4 kB / 403 MB, free: 29.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.185e-05/0.2078, allocations: 21.53 kB / 403 MB, free: 29.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.11e-05/0.2079, allocations: 79.64 kB / 403.1 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.07e-05/0.208, allocations: 79.67 kB / 403.2 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.208, allocations: 11.94 kB / 403.2 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.762e-05/0.2081, allocations: 39.98 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.395e-05/0.2082, allocations: 47.81 kB / 403.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.471e-05/0.2082, allocations: 67.55 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.2084, allocations: 212.8 kB / 403.5 MB, free: 29.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2084, allocations: 0 / 403.5 MB, free: 29.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2085, allocations: 0 / 403.5 MB, free: 29.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2085, allocations: 0 / 403.5 MB, free: 29.32 MB / 298.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.0006447/0.2091, allocations: 0.5274 MB / 404.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.2091, allocations: 8.031 kB / 404.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.728e-05/0.2092, allocations: 20.66 kB / 404.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.2094, allocations: 254.9 kB / 404.3 MB, free: 28.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.2094, allocations: 15.92 kB / 404.3 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.2095, allocations: 4 kB / 404.3 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.2096, allocations: 116.9 kB / 404.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.2097, allocations: 0 / 404.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.2097, allocations: 4 kB / 404.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2097, allocations: 7.938 kB / 404.5 MB, free: 28.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.2098, allocations: 51.89 kB / 404.5 MB, free: 28.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.2103, allocations: 0.6104 MB / 405.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.2105, allocations: 123.9 kB / 405.3 MB, free: 27.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.122e-05/0.2106, allocations: 54.55 kB / 405.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.2106, allocations: 0 / 405.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/0.2108, allocations: 129.9 kB / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.2108, allocations: 0 / 405.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003399/0.2112, allocations: 169.4 kB / 405.6 MB, free: 27.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.2112, allocations: 132.5 kB / 405.7 MB, free: 26.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.2114, allocations: 296.8 kB / 406 MB, free: 26.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.2114, allocations: 29.7 kB / 406 MB, free: 26.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.067e-05/0.2115, allocations: 128.5 kB / 406.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.2115, allocations: 23.66 kB / 406.2 MB, free: 26.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.2116, allocations: 33.7 kB / 406.2 MB, free: 26.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.807e-05/0.2116, allocations: 330.8 kB / 406.6 MB, free: 25.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.312e-05/0.2117, allocations: 31.98 kB / 406.6 MB, free: 25.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.764e-05/0.2118, allocations: 86.83 kB / 406.7 MB, free: 25.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.2119, allocations: 88.22 kB / 406.8 MB, free: 25.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2119, allocations: 4 kB / 406.8 MB, free: 25.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002068/0.2121, allocations: 149.8 kB / 406.9 MB, free: 25.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2122, allocations: 4 kB / 406.9 MB, free: 25.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2122, allocations: 128 / 406.9 MB, free: 25.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.2122, allocations: 4 kB / 406.9 MB, free: 25.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.2123, allocations: 16 kB / 406.9 MB, free: 25.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.2123, allocations: 7.875 kB / 406.9 MB, free: 25.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.184e-05/0.2124, allocations: 19.92 kB / 407 MB, free: 25.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.2124, allocations: 4 kB / 407 MB, free: 25.54 MB / 298.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 9.256e-05/0.2125, allocations: 149.8 kB / 407.1 MB, free: 25.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.2125, allocations: 19.72 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.386e-05/0.2126, allocations: 25.7 kB / 407.2 MB, free: 25.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2126, allocations: 4 kB / 407.2 MB, free: 25.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2126, allocations: 3.938 kB / 407.2 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2126, allocations: 3.984 kB / 407.2 MB, free: 25.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.2127, allocations: 237.6 kB / 407.4 MB, free: 25.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2128, allocations: 0 / 407.4 MB, free: 25.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.522e-05/0.2128, allocations: 11.94 kB / 407.4 MB, free: 25.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2128, allocations: 11.92 kB / 407.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.2128, allocations: 4 kB / 407.4 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2128, allocations: 4 kB / 407.4 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2128, allocations: 3.938 kB / 407.4 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004162/0.2132, allocations: 0.7814 MB / 408.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.2133, allocations: 108.7 kB / 408.3 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.2133, allocations: 7.984 kB / 408.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.725e-05/0.2134, allocations: 11.98 kB / 408.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.2135, allocations: 11.98 kB / 408.3 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2135, allocations: 8 kB / 408.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001301/0.2136, allocations: 208.5 kB / 408.6 MB, free: 23.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2136, allocations: 0 / 408.6 MB, free: 23.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.214, allocations: 36 kB / 408.6 MB, free: 23.75 MB / 298.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.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.0007388/0.2147, allocations: 432.8 kB / 409 MB, free: 23.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002067/0.2149, allocations: 87.91 kB / 409.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2149, allocations: 0 / 409.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.215, allocations: 51.91 kB / 409.2 MB, free: 23.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.2154, allocations: 52.59 kB / 409.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004983/0.2159, allocations: 0.5211 MB / 409.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.216, allocations: 0.7322 MB / 410.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.17e-05/0.2161, allocations: 25.53 kB / 410.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.2161, allocations: 19.44 kB / 410.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2161, allocations: 0 / 410.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of Templates: time 0.004378/0.2205, allocations: 2.626 MB / 413.1 MB, free: 19.32 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches