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.001313/0.001313, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2553, allocations: 50.54 MB / 409.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003521/0.2589, allocations: 1.848 MB / 411.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.261, allocations: 1.169 MB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.2611, allocations: 4 kB / 412.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006908/0.2619, allocations: 171.5 kB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005123/0.2624, allocations: 167.3 kB / 413.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.2629, allocations: 139.6 kB / 413.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003624/0.2632, allocations: 223.4 kB / 413.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.2634, allocations: 21.56 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.2636, allocations: 91.61 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.2637, allocations: 87.61 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.2638, allocations: 12 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.264, allocations: 59.91 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.405e-05/0.2641, allocations: 51.81 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.651e-05/0.2642, allocations: 75.55 kB / 414 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003906/0.2646, allocations: 230.9 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2646, allocations: 0 / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2646, allocations: 0 / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.2646, allocations: 0 / 414.2 MB, free: 13.31 MB / 334.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.001002/0.2656, allocations: 0.5248 MB / 414.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2657, allocations: 8.031 kB / 414.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.563e-05/0.2657, allocations: 20.75 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.2661, allocations: 266.8 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.2662, allocations: 4.375 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.2662, allocations: 12.12 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.2665, allocations: 125.5 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2665, allocations: 0 / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.2665, allocations: 0 / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.2665, allocations: 4 kB / 415.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.2667, allocations: 59.83 kB / 415.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007331/0.2674, allocations: 0.6065 MB / 415.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.2677, allocations: 119.9 kB / 416 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.2679, allocations: 54.55 kB / 416 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.2679, allocations: 80 / 416 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.2681, allocations: 133.8 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.2682, allocations: 0 / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004639/0.2686, allocations: 169.3 kB / 416.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.2687, allocations: 140.6 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.269, allocations: 292.9 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.2691, allocations: 33.7 kB / 416.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.705e-05/0.2692, allocations: 132.2 kB / 416.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.086e-05/0.2692, allocations: 23.7 kB / 416.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-05/0.2693, allocations: 33.7 kB / 417 MB, free: 10.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2694, allocations: 330.8 kB / 417.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.411e-05/0.2695, allocations: 35.98 kB / 417.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.2697, allocations: 85.92 kB / 417.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.2699, allocations: 104.7 kB / 417.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2699, allocations: 0 / 417.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003002/0.2702, allocations: 141.3 kB / 417.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.2702, allocations: 11.94 kB / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2702, allocations: 0 / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2702, allocations: 0 / 417.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.817e-05/0.2703, allocations: 15.98 kB / 417.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.2703, allocations: 4 kB / 417.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.2705, allocations: 27.95 kB / 417.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.2705, allocations: 4 kB / 417.7 MB, free: 9.488 MB / 334.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.0001481/0.2706, allocations: 145.8 kB / 417.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.043e-05/0.2707, allocations: 19.72 kB / 417.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.916e-05/0.2708, allocations: 25.7 kB / 417.9 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2708, allocations: 4 kB / 417.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2708, allocations: 0 / 417.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.2708, allocations: 3.938 kB / 417.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.2711, allocations: 253.5 kB / 418.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2711, allocations: 0 / 418.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.047e-05/0.2711, allocations: 7.938 kB / 418.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.2711, allocations: 4 kB / 418.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.2711, allocations: 4.109 kB / 418.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.2712, allocations: 8 kB / 418.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.2712, allocations: 0 / 418.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.2715, allocations: 182.4 kB / 418.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.449e-05/0.2716, allocations: 92.92 kB / 418.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.2716, allocations: 7.938 kB / 418.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.2717, allocations: 11.98 kB / 418.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.2718, allocations: 23.84 kB / 418.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.2718, allocations: 8 kB / 418.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002216/0.272, allocations: 216.5 kB / 418.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2721, allocations: 4 kB / 418.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000276/0.2723, allocations: 32 kB / 418.7 MB, free: 8.352 MB / 334.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.001009/0.2734, allocations: 407.8 kB / 419.1 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002885/0.2737, allocations: 87.84 kB / 419.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2737, allocations: 0 / 419.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.2738, allocations: 60.16 kB / 419.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003883/0.2742, allocations: 62.19 kB / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006754/0.2749, allocations: 382.7 kB / 419.7 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.2753, allocations: 0.7397 MB / 420.5 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.994e-05/0.2753, allocations: 19.44 kB / 420.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2753, allocations: 0 / 420.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of Templates: time 0.005812/0.2811, allocations: 2.949 MB / 423.4 MB, free: 3.746 MB / 334.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