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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00144/0.001441, allocations: 116.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 60.41 kB / 306.4 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.09094, allocations: 50.53 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002903/0.09387, allocations: 1.906 MB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.09569, allocations: 1.157 MB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.485e-05/0.0958, allocations: 8 kB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005948/0.09641, allocations: 147.7 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003605/0.09678, allocations: 151.5 kB / 360.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.09712, allocations: 131.1 kB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002414/0.09738, allocations: 219.4 kB / 360.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.09748, allocations: 25.52 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.09761, allocations: 83.64 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.09774, allocations: 95.53 kB / 360.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.209e-05/0.09777, allocations: 12 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.0979, allocations: 55.98 kB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.09798, allocations: 55.81 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.303e-05/0.09806, allocations: 79.48 kB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.09837, allocations: 223.6 kB / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.09839, allocations: 0 / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.0984, allocations: 0 / 361.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.09841, allocations: 0 / 361.3 MB, free: 9.852 MB / 302.1 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.0008248/0.09924, allocations: 0.5257 MB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.09928, allocations: 8.031 kB / 361.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.967e-05/0.09935, allocations: 28.66 kB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.09966, allocations: 258.8 kB / 362.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.09968, allocations: 8.375 kB / 362.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.09971, allocations: 8.125 kB / 362.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.09994, allocations: 113.9 kB / 362.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.09996, allocations: 3.938 kB / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.09999, allocations: 11.94 kB / 362.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.09999, allocations: 0 / 362.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.1001, allocations: 47.97 kB / 362.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.1008, allocations: 0.6183 MB / 362.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.101, allocations: 115.9 kB / 363 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.1011, allocations: 54.55 kB / 363.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1012, allocations: 4 kB / 363.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.1014, allocations: 117.9 kB / 363.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.1014, allocations: 0 / 363.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004283/0.1018, allocations: 177.4 kB / 363.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.1019, allocations: 132.5 kB / 363.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002908/0.1022, allocations: 300.9 kB / 363.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.1022, allocations: 29.7 kB / 363.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.6e-05/0.1023, allocations: 128.4 kB / 363.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.1024, allocations: 27.64 kB / 364 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.082e-05/0.1024, allocations: 33.7 kB / 364 MB, free: 6.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1025, allocations: 330.8 kB / 364.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.096e-05/0.1026, allocations: 39.98 kB / 364.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.1028, allocations: 84.38 kB / 364.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.103, allocations: 104.7 kB / 364.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.103, allocations: 0 / 364.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000262/0.1032, allocations: 141.3 kB / 364.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1033, allocations: 8 kB / 364.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1033, allocations: 0 / 364.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.1033, allocations: 3.984 kB / 364.7 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.93e-05/0.1034, allocations: 19.92 kB / 364.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1034, allocations: 8.094 kB / 364.7 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.1035, allocations: 19.83 kB / 364.7 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.1036, allocations: 11.94 kB / 364.8 MB, free: 6.031 MB / 302.1 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 0.0001258/0.1037, allocations: 145.7 kB / 364.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.597e-05/0.1037, allocations: 19.81 kB / 364.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.598e-05/0.1038, allocations: 25.7 kB / 364.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1038, allocations: 0 / 364.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1038, allocations: 4 kB / 364.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1038, allocations: 7.938 kB / 365 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.1041, allocations: 249.5 kB / 365.2 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1041, allocations: 3.938 kB / 365.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.696e-05/0.1041, allocations: 4.125 kB / 365.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1041, allocations: 8 kB / 365.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1041, allocations: 3.984 kB / 365.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1041, allocations: 0 / 365.2 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1041, allocations: 4 kB / 365.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/0.1044, allocations: 178.5 kB / 365.4 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.1045, allocations: 96.83 kB / 365.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.1046, allocations: 7.938 kB / 365.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.816e-05/0.1047, allocations: 11.98 kB / 365.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/0.1047, allocations: 19.91 kB / 365.5 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.1048, allocations: 4 kB / 365.5 MB, free: 5.152 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.105, allocations: 224.5 kB / 365.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.105, allocations: 0 / 365.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1053, allocations: 36 kB / 365.8 MB, free: 4.895 MB / 302.1 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.0009638/0.1062, allocations: 421.1 kB / 366.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002852/0.1065, allocations: 95.83 kB / 366.3 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1065, allocations: 4.188 kB / 366.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.1067, allocations: 51.92 kB / 366.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.1071, allocations: 52.38 kB / 366.4 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.1077, allocations: 393 kB / 366.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.108, allocations: 0.7397 MB / 367.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.554e-05/0.1081, allocations: 25.53 kB / 367.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.166e-05/0.1082, allocations: 23.44 kB / 367.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1082, allocations: 0 / 367.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Templates: time 0.005845/0.114, allocations: 2.668 MB / 370.2 MB, free: 0.5391 MB / 302.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches