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.001281/0.001281, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.9 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 60.53 kB / 306.9 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/0.08913, allocations: 50.53 MB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003216/0.09238, allocations: 1.911 MB / 359.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.09429, allocations: 1.157 MB / 360.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.09444, allocations: 4 kB / 360.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006213/0.09511, allocations: 159.6 kB / 360.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004028/0.09553, allocations: 143.5 kB / 360.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.09593, allocations: 135.6 kB / 360.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.09622, allocations: 215.3 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.09634, allocations: 25.53 kB / 361.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.09648, allocations: 75.62 kB / 361.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.09662, allocations: 83.61 kB / 361.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.717e-05/0.09666, allocations: 8 kB / 361.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.09681, allocations: 47.91 kB / 361.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.664e-05/0.09689, allocations: 43.83 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.316e-05/0.09698, allocations: 71.55 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002387/0.09723, allocations: 172 kB / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.09724, allocations: 0 / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.09725, allocations: 0 / 361.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.09726, allocations: 0 / 361.6 MB, free: 10.06 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.0009121/0.09818, allocations: 0.5295 MB / 362.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.09822, allocations: 8.031 kB / 362.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.713e-05/0.0983, allocations: 20.66 kB / 362.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.09862, allocations: 270.8 kB / 362.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.09864, allocations: 4.375 kB / 362.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.09867, allocations: 12.12 kB / 362.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.09892, allocations: 113.9 kB / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.09894, allocations: 0 / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.09896, allocations: 4 kB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.09897, allocations: 4 kB / 362.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000151/0.09912, allocations: 51.91 kB / 362.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.09979, allocations: 0.6026 MB / 363.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.1001, allocations: 127.9 kB / 363.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1002, allocations: 46.5 kB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.1002, allocations: 15.98 kB / 363.4 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.1004, allocations: 121.9 kB / 363.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.1005, allocations: 0 / 363.6 MB, free: 7.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004758/0.1009, allocations: 177.8 kB / 363.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.101, allocations: 132.6 kB / 363.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.1014, allocations: 300.9 kB / 364.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.1014, allocations: 25.7 kB / 364.2 MB, free: 7.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.252e-05/0.1015, allocations: 128.4 kB / 364.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.1015, allocations: 27.64 kB / 364.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.1016, allocations: 33.7 kB / 364.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1017, allocations: 338.8 kB / 364.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.1018, allocations: 31.98 kB / 364.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.1019, allocations: 84.09 kB / 364.8 MB, free: 6.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.1021, allocations: 108.2 kB / 364.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1022, allocations: 0 / 364.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002736/0.1024, allocations: 137.3 kB / 365.1 MB, free: 6.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1025, allocations: 4 kB / 365.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1025, allocations: 4 kB / 365.1 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1025, allocations: 0 / 365.1 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.839e-05/0.1026, allocations: 19.92 kB / 365.1 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.1026, allocations: 4.094 kB / 365.1 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.1027, allocations: 27.83 kB / 365.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.1027, allocations: 4 kB / 365.1 MB, free: 6.246 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.0001345/0.1029, allocations: 153.6 kB / 365.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.1029, allocations: 19.81 kB / 365.3 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.482e-05/0.103, allocations: 25.7 kB / 365.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.103, allocations: 3.984 kB / 365.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.103, allocations: 4 kB / 365.3 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.103, allocations: 7.938 kB / 365.3 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.1033, allocations: 245.6 kB / 365.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1033, allocations: 4 kB / 365.6 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.941e-05/0.1033, allocations: 4 kB / 365.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1033, allocations: 0 / 365.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.1033, allocations: 8 kB / 365.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1033, allocations: 3.984 kB / 365.6 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1033, allocations: 0 / 365.6 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003279/0.1037, allocations: 186.4 kB / 365.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.197e-05/0.1037, allocations: 92.83 kB / 365.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.1038, allocations: 4 kB / 365.9 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.1039, allocations: 11.98 kB / 365.9 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.104, allocations: 19.91 kB / 365.9 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.104, allocations: 8 kB / 365.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000214/0.1042, allocations: 220.5 kB / 366.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1042, allocations: 3.938 kB / 366.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002772/0.1045, allocations: 36 kB / 366.2 MB, free: 5.102 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.0009523/0.1055, allocations: 425.5 kB / 366.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002751/0.1057, allocations: 87.89 kB / 366.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1058, allocations: 0 / 366.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.1059, allocations: 60.11 kB / 366.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.1063, allocations: 41.5 kB / 366.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006576/0.1069, allocations: 420.6 kB / 367.2 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.1073, allocations: 0.736 MB / 367.9 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.1073, allocations: 19.44 kB / 367.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1073, allocations: 0 / 367.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of Templates: time 0.005075/0.1124, allocations: 2.929 MB / 370.9 MB, free: 496 kB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches