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.001054/0.001054, allocations: 94.17 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 193.6 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.7 MB / 246.4 MB, free: 9.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002688, allocations: 4 kB / 307.1 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.09939, allocations: 51.52 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002126/0.1016, allocations: 1.529 MB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.1034, allocations: 1.08 MB / 361.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1036, allocations: 7.938 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006101/0.1042, allocations: 143.7 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.1046, allocations: 135.5 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.1049, allocations: 123 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.1052, allocations: 183.4 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.1053, allocations: 33.5 kB / 361.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.1055, allocations: 79.64 kB / 361.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.1056, allocations: 83.55 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.1056, allocations: 4 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.1058, allocations: 39.98 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.937e-05/0.1058, allocations: 47.81 kB / 362.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.355e-05/0.1059, allocations: 53.64 kB / 362.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.1061, allocations: 159.9 kB / 362.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1061, allocations: 0 / 362.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1061, allocations: 0 / 362.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1061, allocations: 0 / 362.3 MB, free: 9.754 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.0007435/0.1069, allocations: 0.5117 MB / 362.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1069, allocations: 12.03 kB / 362.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.343e-05/0.107, allocations: 19.72 kB / 362.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.1073, allocations: 253.7 kB / 363.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1073, allocations: 8 kB / 363.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.1074, allocations: 8 kB / 363.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.1076, allocations: 117.8 kB / 363.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1076, allocations: 0 / 363.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.1076, allocations: 4 kB / 363.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1076, allocations: 4 kB / 363.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.1078, allocations: 55.91 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005974/0.1084, allocations: 0.6104 MB / 363.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.1086, allocations: 123.9 kB / 364 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.1088, allocations: 54.56 kB / 364.1 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.1088, allocations: 11.98 kB / 364.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.109, allocations: 121.8 kB / 364.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.109, allocations: 0 / 364.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004201/0.1094, allocations: 177.5 kB / 364.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/0.1095, allocations: 132.5 kB / 364.5 MB, free: 7.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002962/0.1098, allocations: 296.9 kB / 364.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.1099, allocations: 29.7 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.1099, allocations: 120.4 kB / 364.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.11, allocations: 35.64 kB / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-06/0.11, allocations: 0 / 365 MB, free: 6.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1101, allocations: 330.8 kB / 365.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-05/0.1102, allocations: 43.95 kB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.1103, allocations: 74 kB / 365.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.117e-05/0.1104, allocations: 44.52 kB / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1104, allocations: 3.953 kB / 365.5 MB, free: 6.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002543/0.1107, allocations: 145.2 kB / 365.6 MB, free: 6.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1107, allocations: 8 kB / 365.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1107, allocations: 0 / 365.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1108, allocations: 3.984 kB / 365.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.967e-05/0.1108, allocations: 15.94 kB / 365.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1109, allocations: 12.03 kB / 365.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.111, allocations: 23.89 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.111, allocations: 4 kB / 365.7 MB, free: 6.055 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 ($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.00012/0.1111, allocations: 137.8 kB / 365.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.07e-05/0.1111, allocations: 23.77 kB / 365.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.217e-05/0.1112, allocations: 25.7 kB / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1112, allocations: 0 / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1112, allocations: 8 kB / 365.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1112, allocations: 3.984 kB / 365.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.1115, allocations: 249.5 kB / 366.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1115, allocations: 0 / 366.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.244e-05/0.1115, allocations: 19.81 kB / 366.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1115, allocations: 4 kB / 366.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1115, allocations: 0 / 366.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.1115, allocations: 0 / 366.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1115, allocations: 4 kB / 366.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.1118, allocations: 174.8 kB / 366.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.1119, allocations: 104.8 kB / 366.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.112, allocations: 3.953 kB / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.818e-05/0.1121, allocations: 19.98 kB / 366.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/0.1121, allocations: 23.91 kB / 366.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1121, allocations: 4 kB / 366.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.1124, allocations: 216.5 kB / 366.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1124, allocations: 0 / 366.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.1126, allocations: 32 kB / 366.7 MB, free: 4.918 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 (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.0008913/0.1135, allocations: 421.2 kB / 367.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.1138, allocations: 95.91 kB / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1138, allocations: 0 / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.1139, allocations: 55.91 kB / 367.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.1143, allocations: 41.44 kB / 367.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006473/0.1149, allocations: 384.3 kB / 367.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1152, allocations: 0.7361 MB / 368.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.721e-05/0.1154, allocations: 33.52 kB / 368.4 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.719e-05/0.1154, allocations: 15.44 kB / 368.5 MB, free: 3.234 MB / 302.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1154, allocations: 0 / 368.5 MB, free: 3.234 MB / 302.1 MB Notification: Performance of Templates: time 0.005926/0.1213, allocations: 2.495 MB / 370.9 MB, free: 0.7578 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