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.0006544/0.0006544, allocations: 93.45 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00074/0.00074, allocations: 205.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.124/1.124, allocations: 227.7 MB / 246.8 MB, free: 9.574 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001843/0.0001843, allocations: 7.984 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07418/0.07437, allocations: 51.52 MB / 359.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001756/0.07616, allocations: 1.56 MB / 360.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.07765, allocations: 1.126 MB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.665e-05/0.07773, allocations: 8 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004688/0.07821, allocations: 155.6 kB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002664/0.07848, allocations: 143.5 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.07876, allocations: 127.8 kB / 362.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.07898, allocations: 219.3 kB / 362.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.356e-05/0.07907, allocations: 29.47 kB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.707e-05/0.07917, allocations: 75.62 kB / 362.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.07929, allocations: 79.62 kB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.07931, allocations: 4 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.436e-05/0.07941, allocations: 43.97 kB / 362.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.864e-05/0.07948, allocations: 51.77 kB / 362.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.279e-05/0.07957, allocations: 93.25 kB / 362.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.07979, allocations: 215.5 kB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.0798, allocations: 0 / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.07981, allocations: 0 / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.07982, allocations: 0 / 363.1 MB, free: 9.152 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.0006499/0.08047, allocations: 0.5042 MB / 363.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.704e-05/0.08051, allocations: 8.031 kB / 363.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.395e-05/0.08056, allocations: 24.66 kB / 363.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.08081, allocations: 262.8 kB / 363.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.08084, allocations: 8.375 kB / 363.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.08086, allocations: 8.125 kB / 363.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.08107, allocations: 125.6 kB / 364.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.08108, allocations: 0 / 364.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.0811, allocations: 8 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.08111, allocations: 3.984 kB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.08125, allocations: 55.84 kB / 364.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.0818, allocations: 0.6182 MB / 364.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.08203, allocations: 119.9 kB / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.481e-05/0.08213, allocations: 58.5 kB / 364.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.08216, allocations: 3.984 kB / 364.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.08236, allocations: 117.9 kB / 365 MB, free: 7.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.08237, allocations: 0 / 365 MB, free: 7.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003679/0.08274, allocations: 177.3 kB / 365.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.08281, allocations: 132.5 kB / 365.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.08307, allocations: 296.9 kB / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.0831, allocations: 33.83 kB / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.658e-05/0.08318, allocations: 124.4 kB / 365.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.08321, allocations: 35.7 kB / 365.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.08324, allocations: 17.72 kB / 365.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.08335, allocations: 338.8 kB / 366.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.724e-05/0.08344, allocations: 27.98 kB / 366.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.08355, allocations: 92.52 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.08372, allocations: 96.16 kB / 366.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.08373, allocations: 0 / 366.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002324/0.08396, allocations: 149.9 kB / 366.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.08399, allocations: 4 kB / 366.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.08401, allocations: 7.938 kB / 366.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.897e-06/0.08402, allocations: 0 / 366.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.164e-05/0.08409, allocations: 19.94 kB / 366.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.08411, allocations: 7.984 kB / 366.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.08421, allocations: 23.94 kB / 366.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.08423, allocations: 4 kB / 366.6 MB, free: 5.344 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.0001088/0.08434, allocations: 149.7 kB / 366.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.08438, allocations: 27.73 kB / 366.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.08443, allocations: 21.72 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.08444, allocations: 0 / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.08445, allocations: 4 kB / 366.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.08446, allocations: 7.922 kB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.08466, allocations: 249.4 kB / 367 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.08467, allocations: 4 kB / 367.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-05/0.08469, allocations: 4 kB / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.0847, allocations: 0 / 367.1 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.08472, allocations: 4 kB / 367.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.08472, allocations: 0 / 367.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.08473, allocations: 0 / 367.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.08499, allocations: 182.5 kB / 367.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.08506, allocations: 104.8 kB / 367.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.08509, allocations: 0 / 367.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.0852, allocations: 19.98 kB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/0.08526, allocations: 19.84 kB / 367.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.08528, allocations: 4.062 kB / 367.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.08547, allocations: 228.5 kB / 367.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08548, allocations: 0 / 367.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.08571, allocations: 32 kB / 367.6 MB, free: 4.199 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.0007872/0.0865, allocations: 420.4 kB / 368 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002212/0.08673, allocations: 91.84 kB / 368.1 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.08674, allocations: 4.188 kB / 368.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.08687, allocations: 60.22 kB / 368.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.08719, allocations: 41.5 kB / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004917/0.08769, allocations: 400.3 kB / 368.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.08794, allocations: 0.7322 MB / 369.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.862e-05/0.08803, allocations: 25.53 kB / 369.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.08e-05/0.08807, allocations: 19.44 kB / 369.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.08808, allocations: 0 / 369.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of Templates: time 0.1271/0.2152, allocations: 2.556 MB / 372 MB, free: 18.81 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