Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001604/0.001604, allocations: 175.2 kB / 16.72 MB, free: 4.957 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.414/1.414, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008007/0.0008007, allocations: 89.42 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003174, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.224, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001984/0.226, allocations: 1.494 MB / 376.6 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2274, allocations: 0.8886 MB / 377.5 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.2275, allocations: 1.281 kB / 377.5 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005736/0.2281, allocations: 147.8 kB / 377.6 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.2284, allocations: 108.4 kB / 377.7 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003924/0.2288, allocations: 124.2 kB / 377.8 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.2291, allocations: 191.2 kB / 378 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.2292, allocations: 15.34 kB / 378 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.2294, allocations: 78.14 kB / 378.1 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.2295, allocations: 81.53 kB / 378.2 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.779e-05/0.2295, allocations: 4.75 kB / 378.2 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.2297, allocations: 38.69 kB / 378.2 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.2297, allocations: 43.12 kB / 378.3 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.371e-05/0.2298, allocations: 90.08 kB / 378.4 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.2301, allocations: 156.9 kB / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2301, allocations: 0 / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2301, allocations: 0 / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2301, allocations: 0 / 378.5 MB, free: 42.91 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.0007081/0.2308, allocations: 0.5063 MB / 379 MB, free: 42.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2308, allocations: 9.562 kB / 379 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.562e-05/0.2309, allocations: 21.47 kB / 379.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.2312, allocations: 265.1 kB / 379.3 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.2312, allocations: 3.5 kB / 379.3 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.2312, allocations: 16.12 kB / 379.3 MB, free: 42.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.2315, allocations: 115 kB / 379.4 MB, free: 42.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.2315, allocations: 3.938 kB / 379.4 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2315, allocations: 9.188 kB / 379.5 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2315, allocations: 1.969 kB / 379.5 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.2317, allocations: 55.78 kB / 379.5 MB, free: 41.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004844/0.2321, allocations: 0.5985 MB / 380.1 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.2324, allocations: 133.4 kB / 380.2 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.137e-05/0.2325, allocations: 45.59 kB / 380.3 MB, free: 41.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.2325, allocations: 14.47 kB / 380.3 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/0.2327, allocations: 113.2 kB / 380.4 MB, free: 41.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.884e-06/0.2327, allocations: 0 / 380.4 MB, free: 41.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003963/0.2331, allocations: 183.3 kB / 380.6 MB, free: 40.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.2332, allocations: 130.7 kB / 380.7 MB, free: 40.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.2334, allocations: 284.4 kB / 381 MB, free: 40.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.2334, allocations: 27.77 kB / 381 MB, free: 40.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.448e-05/0.2335, allocations: 129.2 kB / 381.1 MB, free: 40.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.2335, allocations: 28.78 kB / 381.2 MB, free: 40.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-06/0.2335, allocations: 1.062 kB / 381.2 MB, free: 40.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.001e-05/0.2336, allocations: 335.9 kB / 381.5 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.291e-05/0.2337, allocations: 37.52 kB / 381.5 MB, free: 40.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.601e-05/0.2338, allocations: 79.17 kB / 381.6 MB, free: 40.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.2339, allocations: 97.25 kB / 381.7 MB, free: 39.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.234, allocations: 0 / 381.7 MB, free: 39.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002309/0.2342, allocations: 148.2 kB / 381.9 MB, free: 39.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2342, allocations: 9.016 kB / 381.9 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2342, allocations: 5.172 kB / 381.9 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2342, allocations: 6.781 kB / 381.9 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.934e-05/0.2343, allocations: 14.72 kB / 381.9 MB, free: 39.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2343, allocations: 2.281 kB / 381.9 MB, free: 39.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2345, allocations: 31.89 kB / 381.9 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2345, allocations: 4.125 kB / 381.9 MB, free: 39.84 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.237e-05/0.2346, allocations: 144.6 kB / 382.1 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/0.2346, allocations: 21.44 kB / 382.1 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.633e-05/0.2347, allocations: 29.3 kB / 382.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2347, allocations: 2.312 kB / 382.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2347, allocations: 1.25 kB / 382.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2347, allocations: 3.938 kB / 382.1 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.2348, allocations: 247.6 kB / 382.4 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2349, allocations: 1.031 kB / 382.4 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.577e-05/0.2349, allocations: 9.25 kB / 382.4 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2349, allocations: 1.438 kB / 382.4 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.2349, allocations: 6.672 kB / 382.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2349, allocations: 0 / 382.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2349, allocations: 5.438 kB / 382.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.2352, allocations: 191.9 kB / 382.6 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.2353, allocations: 99.12 kB / 382.7 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.2353, allocations: 2.531 kB / 382.7 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.2354, allocations: 17.3 kB / 382.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.2355, allocations: 19.2 kB / 382.7 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.2355, allocations: 4.25 kB / 382.7 MB, free: 39.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001775/0.2357, allocations: 211.8 kB / 382.9 MB, free: 39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2357, allocations: 0 / 382.9 MB, free: 39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002611/0.236, allocations: 36.2 kB / 383 MB, free: 38.99 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008058/0.2368, allocations: 418.7 kB / 383.4 MB, free: 38.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.237, allocations: 98.61 kB / 383.5 MB, free: 38.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2371, allocations: 0 / 383.5 MB, free: 38.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.2372, allocations: 55.58 kB / 383.5 MB, free: 38.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.2375, allocations: 55.75 kB / 383.6 MB, free: 38.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005102/0.2381, allocations: 398.5 kB / 384 MB, free: 38.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.2382, allocations: 0.7324 MB / 384.7 MB, free: 37.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.108e-05/0.2383, allocations: 18.81 kB / 384.7 MB, free: 37.51 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2383, allocations: 4 kB / 384.7 MB, free: 37.5 MB / 298.7 MB Notification: Performance of Templates: time 0.004251/0.2425, allocations: 2.84 MB / 387.6 MB, free: 35.72 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches