Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009996/0.0009997, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009711/0.000971, allocations: 95.91 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008337/0.0008338, allocations: 39.94 kB / 327.2 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1856, allocations: 46.62 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002783/0.1884, allocations: 1.872 MB / 375.7 MB, free: 44.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1897, allocations: 0.9397 MB / 376.6 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1898, allocations: 1.188 kB / 376.6 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005016/0.1903, allocations: 161 kB / 376.8 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.1905, allocations: 112.5 kB / 376.9 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.1909, allocations: 138.5 kB / 377 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.1911, allocations: 205.4 kB / 377.2 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.359e-05/0.1912, allocations: 19.95 kB / 377.2 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1913, allocations: 78 kB / 377.3 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.1914, allocations: 76.88 kB / 377.4 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.1915, allocations: 8.516 kB / 377.4 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.1916, allocations: 47.22 kB / 377.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.8e-05/0.1916, allocations: 43.59 kB / 377.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.58e-05/0.1917, allocations: 74.34 kB / 377.6 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.1919, allocations: 208.2 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.192, allocations: 1.156 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.192, allocations: 0 / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.192, allocations: 3.938 kB / 377.8 MB, free: 42.93 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.0006688/0.1926, allocations: 0.5178 MB / 378.3 MB, free: 42.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.1927, allocations: 9.75 kB / 378.3 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.1927, allocations: 22.06 kB / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.193, allocations: 268.7 kB / 378.6 MB, free: 42.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.193, allocations: 7.719 kB / 378.6 MB, free: 42.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.193, allocations: 8.969 kB / 378.6 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.1932, allocations: 119.9 kB / 378.7 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.1932, allocations: 0 / 378.7 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1933, allocations: 5.188 kB / 378.7 MB, free: 42.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.1933, allocations: 6.375 kB / 378.7 MB, free: 42.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.1934, allocations: 52.92 kB / 378.8 MB, free: 41.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004472/0.1939, allocations: 0.5987 MB / 379.4 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.1941, allocations: 128.8 kB / 379.5 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.704e-05/0.1942, allocations: 56.38 kB / 379.6 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.1942, allocations: 6.594 kB / 379.6 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.1944, allocations: 119.4 kB / 379.7 MB, free: 41.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.1944, allocations: 1.375 kB / 379.7 MB, free: 41.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003774/0.1948, allocations: 173 kB / 379.9 MB, free: 41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.1948, allocations: 139.5 kB / 380 MB, free: 40.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.1951, allocations: 289.5 kB / 380.3 MB, free: 40.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.1951, allocations: 31.7 kB / 380.3 MB, free: 40.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.993e-05/0.1951, allocations: 122 kB / 380.4 MB, free: 40.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.1952, allocations: 31.83 kB / 380.5 MB, free: 40.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.1952, allocations: 33.27 kB / 380.5 MB, free: 40.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.1953, allocations: 332.2 kB / 380.8 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.115e-05/0.1954, allocations: 36.77 kB / 380.8 MB, free: 40.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.322e-05/0.1955, allocations: 86.8 kB / 380.9 MB, free: 40.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.1956, allocations: 100.3 kB / 381 MB, free: 39.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1956, allocations: 0.5 kB / 381 MB, free: 39.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002295/0.1959, allocations: 147.5 kB / 381.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.1959, allocations: 5.031 kB / 381.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1959, allocations: 1.375 kB / 381.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1959, allocations: 1.156 kB / 381.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.774e-05/0.196, allocations: 20.36 kB / 381.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.196, allocations: 1.188 kB / 381.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.1961, allocations: 23.67 kB / 381.2 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.1961, allocations: 5.25 kB / 381.2 MB, free: 39.82 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 8.745e-05/0.1962, allocations: 148.1 kB / 381.4 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.1963, allocations: 20.66 kB / 381.4 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.437e-05/0.1963, allocations: 25.73 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1963, allocations: 2.562 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1963, allocations: 1.188 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1963, allocations: 5.406 kB / 381.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.1965, allocations: 239.3 kB / 381.7 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1965, allocations: 7.922 kB / 381.7 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.651e-05/0.1965, allocations: 9.375 kB / 381.7 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.1965, allocations: 1.375 kB / 381.7 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.1966, allocations: 2.594 kB / 381.7 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1966, allocations: 1.406 kB / 381.7 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1966, allocations: 0 / 381.7 MB, free: 39.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.197, allocations: 0.7959 MB / 382.5 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.1971, allocations: 94.91 kB / 382.6 MB, free: 38.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.1971, allocations: 6.406 kB / 382.6 MB, free: 38.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.265e-05/0.1972, allocations: 13.83 kB / 382.6 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.1973, allocations: 14.73 kB / 382.6 MB, free: 38.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.1973, allocations: 16.16 kB / 382.6 MB, free: 38.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001596/0.1975, allocations: 209.7 kB / 382.8 MB, free: 38.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1975, allocations: 3.938 kB / 382.8 MB, free: 38.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00034/0.1978, allocations: 39.73 kB / 382.9 MB, free: 38.35 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.0007485/0.1986, allocations: 405.1 kB / 383.3 MB, free: 38.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.1988, allocations: 97.11 kB / 383.4 MB, free: 37.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1988, allocations: 0 / 383.4 MB, free: 37.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.199, allocations: 50.36 kB / 383.4 MB, free: 37.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.1993, allocations: 51.86 kB / 383.5 MB, free: 37.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/0.1998, allocations: 0.528 MB / 384 MB, free: 37.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.1999, allocations: 0.7342 MB / 384.7 MB, free: 36.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.842e-05/0.2, allocations: 19.98 kB / 384.7 MB, free: 36.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.26e-05/0.2001, allocations: 22.28 kB / 384.8 MB, free: 36.75 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2001, allocations: 1.188 kB / 384.8 MB, free: 36.75 MB / 298.7 MB Notification: Performance of Templates: time 0.004744/0.2048, allocations: 2.622 MB / 387.4 MB, free: 35.39 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches