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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009243/0.0009243, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001953/0.001953, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.027/1.027, allocations: 177 MB / 204.8 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.172e-05/3.337e-05, allocations: 9.266 kB / 272.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003259/0.003292, allocations: 1.887 MB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.00485, allocations: 1.16 MB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.004954, allocations: 4 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006502/0.005604, allocations: 167.4 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004055/0.00601, allocations: 183.2 kB / 276.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.006371, allocations: 139.5 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002674/0.006638, allocations: 227.2 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.006749, allocations: 13.81 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.006898, allocations: 115.6 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.00701, allocations: 79.78 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.007034, allocations: 16 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.007155, allocations: 55.95 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.642e-05/0.007222, allocations: 47.84 kB / 277 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.007279, allocations: 43.84 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.007532, allocations: 183.2 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.007535, allocations: 0 / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.007537, allocations: 4 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.007543, allocations: 0 / 277.2 MB, free: 13.17 MB / 266.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.0006964/0.00824, allocations: 0.544 MB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.008277, allocations: 15.97 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.261e-05/0.008339, allocations: 32.8 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.008577, allocations: 212.3 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.008602, allocations: 8.375 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.008615, allocations: 8.359 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.008808, allocations: 101 kB / 278.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.00882, allocations: 4.125 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.008833, allocations: 4.375 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.008845, allocations: 7.938 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.527e-05/0.008901, allocations: 23.97 kB / 278.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.009454, allocations: 0.7307 MB / 278.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.009611, allocations: 125.4 kB / 279 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.265e-05/0.009663, allocations: 43.05 kB / 279 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.009684, allocations: 7.938 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001318/0.009815, allocations: 120 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.009817, allocations: 0 / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002612/0.01008, allocations: 145.5 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.01012, allocations: 110.8 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.01031, allocations: 292.3 kB / 279.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.01032, allocations: 33.7 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.0104, allocations: 174.8 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.01043, allocations: 31.75 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.01047, allocations: 35.36 kB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.01059, allocations: 0.5079 MB / 280.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.591e-05/0.01063, allocations: 12 kB / 280.5 MB, free: 9.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.496e-05/0.01069, allocations: 103.8 kB / 280.6 MB, free: 9.441 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.302e-05/0.01078, allocations: 86.91 kB / 280.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01078, allocations: 0 / 280.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001378/0.01092, allocations: 125.3 kB / 280.8 MB, free: 9.207 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.01093, allocations: 10.81 kB / 280.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.01094, allocations: 0 / 280.8 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.01095, allocations: 4 kB / 280.8 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.264e-05/0.01102, allocations: 19.92 kB / 280.8 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.01103, allocations: 0 / 280.8 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.594e-05/0.01108, allocations: 20.08 kB / 280.8 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.01109, allocations: 4 kB / 280.9 MB, free: 9.152 MB / 266.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 ($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 8.474e-05/0.01118, allocations: 172.5 kB / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.01121, allocations: 31.8 kB / 281.1 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.01135, allocations: 103.4 kB / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01135, allocations: 0 / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.01136, allocations: 4 kB / 281.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.01136, allocations: 0 / 281.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.0115, allocations: 180.5 kB / 281.3 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.0115, allocations: 4 kB / 281.3 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.648e-05/0.01153, allocations: 11.98 kB / 281.3 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.01153, allocations: 8 kB / 281.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.01155, allocations: 12 kB / 281.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.01155, allocations: 0 / 281.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01155, allocations: 0 / 281.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.0117, allocations: 179.5 kB / 281.5 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/0.01172, allocations: 23.83 kB / 281.6 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.01175, allocations: 8 kB / 281.6 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.52e-05/0.01179, allocations: 7.984 kB / 281.6 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/0.01184, allocations: 19.92 kB / 281.6 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.01186, allocations: 11.98 kB / 281.6 MB, free: 8.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.01197, allocations: 205.1 kB / 281.8 MB, free: 8.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01197, allocations: 4 kB / 281.8 MB, free: 8.105 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001835/0.01215, allocations: 35.89 kB / 281.9 MB, free: 8.07 MB / 266.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 (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.0008536/0.013, allocations: 388.1 kB / 282.2 MB, free: 7.801 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001535/0.01316, allocations: 79.56 kB / 282.3 MB, free: 7.719 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.01316, allocations: 0 / 282.3 MB, free: 7.719 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.413e-05/0.01321, allocations: 43.61 kB / 282.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002291/0.01344, allocations: 60.52 kB / 282.4 MB, free: 7.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00043/0.01387, allocations: 338.2 kB / 282.7 MB, free: 7.246 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.521e-05/0.01392, allocations: 79.92 kB / 282.8 MB, free: 7.148 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.243e-05/0.01398, allocations: 21.47 kB / 282.8 MB, free: 7.129 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.01403, allocations: 24.5 kB / 282.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01403, allocations: 0 / 282.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of Templates: time 0.005184/0.01922, allocations: 3.11 MB / 286 MB, free: 4.027 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9885533140040934]