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.002/0.001999, allocations: 181 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.243/3.243, allocations: 205.4 MB / 223.6 MB, free: 8.941 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.001464/0.001464, allocations: 89.48 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005468/0.0005472, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5755/0.5761, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2118/0.788, allocations: 79.42 MB / 455.1 MB, free: 1.207 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005229/0.7887, allocations: 71.97 kB / 455.2 MB, free: 1.137 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03544/0.8242, allocations: 5.725 MB / 460.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.858e-06/0.8243, allocations: 0 / 460.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.719e-05/0.8244, allocations: 4 kB / 460.9 MB, free: 11.41 MB / 346.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.002834/0.8272, allocations: 0.516 MB / 461.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001082/0.8273, allocations: 12.03 kB / 461.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.8276, allocations: 16.75 kB / 461.5 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008229/0.8284, allocations: 270.8 kB / 461.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.8285, allocations: 8.375 kB / 461.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/0.8285, allocations: 8.375 kB / 461.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.829, allocations: 118.4 kB / 461.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.829, allocations: 192 / 461.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.8291, allocations: 11.94 kB / 461.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.8291, allocations: 0 / 461.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002505/0.8293, allocations: 59.89 kB / 461.9 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.8315, allocations: 0.6222 MB / 462.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007218/0.8322, allocations: 119.9 kB / 462.7 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003295/0.8326, allocations: 58.48 kB / 462.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.754e-05/0.8327, allocations: 8 kB / 462.8 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005526/0.8332, allocations: 121.9 kB / 462.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 7.865e-06/0.8333, allocations: 0 / 462.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.001015/0.8343, allocations: 185.3 kB / 463.1 MB, free: 9.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002513/0.8346, allocations: 128.5 kB / 463.2 MB, free: 8.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006782/0.8353, allocations: 292.9 kB / 463.5 MB, free: 8.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.8353, allocations: 25.7 kB / 463.5 MB, free: 8.559 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.8355, allocations: 120.4 kB / 463.6 MB, free: 8.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.043e-05/0.8356, allocations: 27.64 kB / 463.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.8357, allocations: 8 kB / 463.6 MB, free: 8.398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000282/0.836, allocations: 334.9 kB / 464 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.8361, allocations: 31.98 kB / 464 MB, free: 8.031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.8364, allocations: 85.97 kB / 464.1 MB, free: 7.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.8367, allocations: 108.7 kB / 464.2 MB, free: 7.805 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.8367, allocations: 4 kB / 464.2 MB, free: 7.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004726/0.8372, allocations: 141.3 kB / 464.3 MB, free: 7.656 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.8372, allocations: 8 kB / 464.3 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.8373, allocations: 4.094 kB / 464.3 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.196e-05/0.8373, allocations: 4 kB / 464.3 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.8375, allocations: 15.94 kB / 464.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.165e-05/0.8375, allocations: 4 kB / 464.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.8377, allocations: 15.98 kB / 464.4 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.8378, allocations: 4 kB / 464.4 MB, free: 7.602 MB / 346.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 0.0003337/0.8381, allocations: 150.2 kB / 464.5 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.617e-05/0.8382, allocations: 31.66 kB / 464.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004018/0.8386, allocations: 111.4 kB / 464.7 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.8386, allocations: 4 kB / 464.7 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.8386, allocations: 3.984 kB / 464.7 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.8387, allocations: 0 / 464.7 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.8391, allocations: 257.4 kB / 464.9 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.8391, allocations: 4 kB / 464.9 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.213e-05/0.8392, allocations: 4 kB / 464.9 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.8392, allocations: 0 / 464.9 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.8392, allocations: 12 kB / 465 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.8393, allocations: 3.938 kB / 465 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.8393, allocations: 7.938 kB / 465 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.8397, allocations: 182.5 kB / 465.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.8399, allocations: 101 kB / 465.2 MB, free: 6.641 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.8399, allocations: 16 kB / 465.3 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.8401, allocations: 19.92 kB / 465.3 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.8402, allocations: 11.98 kB / 465.3 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.8402, allocations: 4 kB / 465.3 MB, free: 6.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003621/0.8406, allocations: 216.4 kB / 465.5 MB, free: 6.379 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8406, allocations: 0 / 465.5 MB, free: 6.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004666/0.8411, allocations: 44 kB / 465.5 MB, free: 6.336 MB / 346.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.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 (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.001602/0.8427, allocations: 423.6 kB / 466 MB, free: 5.941 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005183/0.8432, allocations: 115.8 kB / 466.1 MB, free: 5.828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.8433, allocations: 3.938 kB / 466.1 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.8435, allocations: 63.91 kB / 466.1 MB, free: 5.762 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.8441, allocations: 46.36 kB / 466.2 MB, free: 5.719 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.8453, allocations: 413.5 kB / 466.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/0.8459, allocations: 0.7361 MB / 467.3 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.846, allocations: 23.44 kB / 467.3 MB, free: 4.492 MB / 346.7 MB Notification: Performance of SimCode: time 5.11e-07/0.846, allocations: 0 / 467.3 MB, free: 4.492 MB / 346.7 MB Notification: Performance of Templates: time 0.01525/0.8613, allocations: 2.927 MB / 470.3 MB, free: 1.566 MB / 346.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/jenkins1/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