Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001571/0.001572, allocations: 200.2 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007728/0.0007729, allocations: 94.89 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003138, allocations: 8 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2929, allocations: 51.3 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.4145, allocations: 81.78 MB / 491.2 MB, free: 9.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.4149, allocations: 71.97 kB / 491.2 MB, free: 9.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03061/0.4455, allocations: 6.668 MB / 497.9 MB, free: 3.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4456, allocations: 0 / 497.9 MB, free: 3.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.4456, allocations: 7.938 kB / 497.9 MB, free: 3.012 MB / 362.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.001043/0.4467, allocations: 0.5393 MB / 498.4 MB, free: 2.414 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.4467, allocations: 8.031 kB / 498.4 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.49e-05/0.4468, allocations: 20.75 kB / 498.5 MB, free: 2.387 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.4474, allocations: 282.7 kB / 498.7 MB, free: 2.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.4475, allocations: 4.375 kB / 498.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.4475, allocations: 4.375 kB / 498.7 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.4478, allocations: 126.5 kB / 498.9 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.4479, allocations: 192 / 498.9 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.4479, allocations: 3.938 kB / 498.9 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.4479, allocations: 0 / 498.9 MB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002599/0.4482, allocations: 59.91 kB / 498.9 MB, free: 1.855 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009305/0.4491, allocations: 0.6144 MB / 499.6 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.4495, allocations: 132.1 kB / 499.7 MB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.4497, allocations: 54.56 kB / 499.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.4498, allocations: 0 / 499.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.4501, allocations: 141.8 kB / 499.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.124e-06/0.4501, allocations: 0 / 499.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007025/0.4508, allocations: 173.4 kB / 0.4883 GB, free: 0.625 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.517e-05/0.4509, allocations: 144.6 kB / 0.4885 GB, free: 464 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000527/0.4515, allocations: 292.9 kB / 0.4887 GB, free: 152 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.4515, allocations: 33.7 kB / 0.4888 GB, free: 112 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.4517, allocations: 124.4 kB / 0.4889 GB, free: 15.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.4517, allocations: 23.7 kB / 0.4889 GB, free: 15.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-06/0.4518, allocations: 0 / 0.4889 GB, free: 15.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4519, allocations: 338.8 kB / 0.4892 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.4521, allocations: 31.97 kB / 0.4893 GB, free: 15.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.4523, allocations: 93.92 kB / 0.4894 GB, free: 15.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/0.4526, allocations: 100.8 kB / 0.4895 GB, free: 15.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4526, allocations: 0 / 0.4895 GB, free: 15.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004712/0.4531, allocations: 149.2 kB / 0.4896 GB, free: 15.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.4531, allocations: 8 kB / 0.4896 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.4531, allocations: 0 / 0.4896 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.4532, allocations: 0 / 0.4896 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.4533, allocations: 15.94 kB / 0.4896 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.4534, allocations: 12.08 kB / 0.4896 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.4535, allocations: 19.94 kB / 0.4896 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.4536, allocations: 7.984 kB / 0.4897 GB, free: 15.14 MB / 378.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.0001965/0.4538, allocations: 137.8 kB / 0.4898 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.547e-05/0.4539, allocations: 31.7 kB / 0.4898 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003619/0.4542, allocations: 119.2 kB / 0.4899 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.4543, allocations: 4 kB / 0.4899 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4543, allocations: 0 / 0.4899 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4543, allocations: 7.984 kB / 0.4899 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.4546, allocations: 253.5 kB / 0.4902 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.4547, allocations: 0 / 0.4902 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/0.4547, allocations: 11.98 kB / 0.4902 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.4548, allocations: 0 / 0.4902 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.4548, allocations: 4.125 kB / 0.4902 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.4548, allocations: 8 kB / 0.4902 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4548, allocations: 0 / 0.4902 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004948/0.4553, allocations: 190.4 kB / 0.4904 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.4555, allocations: 100.9 kB / 0.4905 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/0.4555, allocations: 8 kB / 0.4905 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.4557, allocations: 11.98 kB / 0.4905 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.4558, allocations: 23.97 kB / 0.4905 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.4559, allocations: 4 kB / 0.4905 GB, free: 14.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000371/0.4562, allocations: 220.4 kB / 0.4907 GB, free: 13.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4563, allocations: 3.938 kB / 0.4907 GB, free: 13.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000493/0.4568, allocations: 43.94 kB / 0.4908 GB, free: 13.88 MB / 378.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.001406/0.4582, allocations: 436 kB / 0.4912 GB, free: 13.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004569/0.4587, allocations: 103.9 kB / 0.4913 GB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4587, allocations: 0 / 0.4913 GB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.4589, allocations: 55.91 kB / 0.4914 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006015/0.4596, allocations: 48.34 kB / 0.4914 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000962/0.4605, allocations: 396.6 kB / 0.4918 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.4609, allocations: 0.7361 MB / 0.4925 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001459/0.4611, allocations: 33.67 kB / 0.4925 GB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.505e-05/0.4612, allocations: 19.44 kB / 0.4925 GB, free: 12.16 MB / 378.7 MB Notification: Performance of SimCode: time 4.9e-07/0.4612, allocations: 0 / 0.4925 GB, free: 12.16 MB / 378.7 MB Notification: Performance of Templates: time 0.008829/0.47, allocations: 2.668 MB / 0.4952 GB, free: 9.512 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches