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.001279/0.001279, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3207, allocations: 50.55 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003813/0.3246, allocations: 1.847 MB / 411.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.3268, allocations: 1.177 MB / 412.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.327, allocations: 8 kB / 412.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007076/0.3278, allocations: 163.5 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005938/0.3284, allocations: 159.4 kB / 412.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.3289, allocations: 147.5 kB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004147/0.3294, allocations: 223.4 kB / 412.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.3295, allocations: 21.56 kB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.3297, allocations: 95.61 kB / 413.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.3299, allocations: 79.62 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.343e-05/0.3299, allocations: 15.98 kB / 413.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.3301, allocations: 55.97 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.392e-05/0.3302, allocations: 51.78 kB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.3303, allocations: 79.52 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004534/0.3308, allocations: 219 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3308, allocations: 0 / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3308, allocations: 0 / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.3308, allocations: 0 / 413.5 MB, free: 13.27 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.00107/0.3319, allocations: 0.5365 MB / 414.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.332, allocations: 12.03 kB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.332, allocations: 20.75 kB / 414.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.3324, allocations: 262.8 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.3324, allocations: 8.375 kB / 414.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.3325, allocations: 8.125 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.3327, allocations: 125.9 kB / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3327, allocations: 0 / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.3328, allocations: 4 kB / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3328, allocations: 4 kB / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.3329, allocations: 47.91 kB / 414.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006931/0.3336, allocations: 0.6104 MB / 415.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.3339, allocations: 123.9 kB / 415.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.334, allocations: 46.56 kB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.3341, allocations: 4 kB / 415.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.3343, allocations: 129.8 kB / 415.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3343, allocations: 0 / 415.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004896/0.3348, allocations: 169.4 kB / 415.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/0.3349, allocations: 140.5 kB / 415.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.3352, allocations: 293 kB / 416.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.3353, allocations: 29.7 kB / 416.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.3354, allocations: 132.3 kB / 416.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.3354, allocations: 27.69 kB / 416.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.036e-05/0.3355, allocations: 29.72 kB / 416.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3356, allocations: 338.8 kB / 416.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.953e-05/0.3357, allocations: 39.92 kB / 416.6 MB, free: 9.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3359, allocations: 81.92 kB / 416.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.3361, allocations: 100.8 kB / 416.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.3361, allocations: 0 / 416.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000299/0.3364, allocations: 145.2 kB / 417 MB, free: 9.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.3364, allocations: 11.94 kB / 417 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3364, allocations: 0 / 417 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.3365, allocations: 4 kB / 417 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.233e-05/0.3366, allocations: 12 kB / 417 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3366, allocations: 12.06 kB / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.3367, allocations: 15.94 kB / 417 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.3367, allocations: 4 kB / 417 MB, free: 9.445 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.0001352/0.3369, allocations: 149.7 kB / 417.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.16e-05/0.3369, allocations: 23.7 kB / 417.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.763e-05/0.337, allocations: 21.72 kB / 417.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.337, allocations: 4 kB / 417.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.337, allocations: 0 / 417.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.337, allocations: 11.92 kB / 417.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3373, allocations: 249.5 kB / 417.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.3373, allocations: 0 / 417.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-05/0.3373, allocations: 4 kB / 417.5 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.3373, allocations: 4 kB / 417.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.3373, allocations: 0 / 417.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.3373, allocations: 4.125 kB / 417.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3374, allocations: 7.938 kB / 417.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.3377, allocations: 182.4 kB / 417.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.454e-05/0.3377, allocations: 100.9 kB / 417.8 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.3378, allocations: 0 / 417.8 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.735e-05/0.3379, allocations: 19.92 kB / 417.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.338, allocations: 15.91 kB / 417.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.338, allocations: 8 kB / 417.8 MB, free: 8.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.3382, allocations: 224.4 kB / 418 MB, free: 8.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3382, allocations: 4 kB / 418 MB, free: 8.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.3385, allocations: 32 kB / 418.1 MB, free: 8.297 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.0009476/0.3394, allocations: 404.4 kB / 418.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002769/0.3397, allocations: 91.84 kB / 418.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3397, allocations: 192 / 418.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.3399, allocations: 55.92 kB / 418.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.3402, allocations: 57.75 kB / 418.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/0.3409, allocations: 361 kB / 419 MB, free: 7.453 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.3412, allocations: 0.732 MB / 419.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.283e-05/0.3413, allocations: 29.52 kB / 419.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.3413, allocations: 23.44 kB / 419.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3413, allocations: 0 / 419.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of Templates: time 0.006563/0.3479, allocations: 2.786 MB / 422.6 MB, free: 3.871 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/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