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.001144/0.001144, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009572/0.0009571, allocations: 85.42 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.768e-05/1.769e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09179/0.09183, allocations: 50.44 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3031/0.395, allocations: 79.86 MB / 467.3 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.3952, allocations: 72.72 kB / 467.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01611/0.4114, allocations: 5.815 MB / 473.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.4114, allocations: 0 / 473.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.4114, allocations: 4 kB / 473.2 MB, free: 9.113 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.0006125/0.4121, allocations: 496.3 kB / 473.7 MB, free: 8.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.4121, allocations: 8.031 kB / 473.7 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.112e-05/0.4122, allocations: 23.77 kB / 473.7 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.4125, allocations: 257.7 kB / 474 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.4126, allocations: 7.984 kB / 474 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.4126, allocations: 11.98 kB / 474 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001164/0.4127, allocations: 32 kB / 474 MB, free: 8.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.4129, allocations: 106 kB / 474.1 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.4129, allocations: 3.938 kB / 474.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.4129, allocations: 4 kB / 474.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.413, allocations: 3.953 kB / 474.1 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005941/0.4136, allocations: 0.5838 MB / 474.7 MB, free: 7.434 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000162/0.4137, allocations: 117.1 kB / 474.8 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.54e-05/0.4138, allocations: 42.69 kB / 474.9 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.4138, allocations: 4 kB / 474.9 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001623/0.414, allocations: 109.9 kB / 475 MB, free: 7.109 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.414, allocations: 7.938 kB / 475 MB, free: 7.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.00028/0.4143, allocations: 129.4 kB / 475.1 MB, free: 6.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.4144, allocations: 128.5 kB / 475.3 MB, free: 6.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.4146, allocations: 252.4 kB / 475.5 MB, free: 6.562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.4147, allocations: 25.7 kB / 475.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.4147, allocations: 120.1 kB / 475.6 MB, free: 6.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.4148, allocations: 35.7 kB / 475.7 MB, free: 6.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.4148, allocations: 0 / 475.7 MB, free: 6.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4149, allocations: 338.8 kB / 476 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.657e-05/0.415, allocations: 20 kB / 476 MB, free: 6.016 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.224e-05/0.415, allocations: 81.94 kB / 476.1 MB, free: 5.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.229e-05/0.4151, allocations: 28.02 kB / 476.1 MB, free: 5.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4151, allocations: 0 / 476.1 MB, free: 5.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000181/0.4153, allocations: 121.3 kB / 476.3 MB, free: 5.762 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.4153, allocations: 9.562 kB / 476.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.4153, allocations: 0 / 476.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.4154, allocations: 4 kB / 476.3 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.064e-05/0.4155, allocations: 19.89 kB / 476.3 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4155, allocations: 256 / 476.3 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.4156, allocations: 20.08 kB / 476.3 MB, free: 5.711 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.4156, allocations: 15.94 kB / 476.3 MB, free: 5.695 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 () * 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 8.714e-05/0.4157, allocations: 112.9 kB / 476.4 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.4158, allocations: 23.72 kB / 476.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.416, allocations: 99.5 kB / 476.5 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.416, allocations: 4 kB / 476.6 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.416, allocations: 3.953 kB / 476.6 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.416, allocations: 3.984 kB / 476.6 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.4162, allocations: 234 kB / 476.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4162, allocations: 0 / 476.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.494e-05/0.4163, allocations: 4 kB / 476.8 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.291e-06/0.4163, allocations: 4 kB / 476.8 MB, free: 5.164 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.4163, allocations: 7.922 kB / 476.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.4163, allocations: 4 kB / 476.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4163, allocations: 0 / 476.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.4166, allocations: 189.9 kB / 477 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.552e-05/0.4166, allocations: 104.8 kB / 477.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.4167, allocations: 8 kB / 477.1 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.4168, allocations: 15.94 kB / 477.1 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.4169, allocations: 23.95 kB / 477.1 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.4169, allocations: 8 kB / 477.2 MB, free: 4.754 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001764/0.4171, allocations: 196.5 kB / 477.3 MB, free: 4.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.433e-06/0.4171, allocations: 0 / 477.3 MB, free: 4.559 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002624/0.4173, allocations: 39.94 kB / 477.4 MB, free: 4.52 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) * 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.0007792/0.4181, allocations: 366.6 kB / 477.7 MB, free: 4.242 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002062/0.4184, allocations: 79.92 kB / 477.8 MB, free: 4.164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4184, allocations: 0 / 477.8 MB, free: 4.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.868e-05/0.4185, allocations: 51.92 kB / 477.9 MB, free: 4.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.4188, allocations: 37.97 kB / 477.9 MB, free: 4.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004629/0.4192, allocations: 259.4 kB / 478.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.4195, allocations: 0.7358 MB / 478.9 MB, free: 3.027 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.444e-05/0.4196, allocations: 25.8 kB / 478.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.4196, allocations: 27.42 kB / 478.9 MB, free: 2.977 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4197, allocations: 0 / 478.9 MB, free: 2.977 MB / 346.7 MB Notification: Performance of Templates: time 0.005241/0.4249, allocations: 2.445 MB / 481.4 MB, free: 0.5508 MB / 346.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/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