Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 145.4 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9354/0.9354, allocations: 173.4 MB / 202.3 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.847e-05/1.982e-05, allocations: 5.266 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002189/0.002208, allocations: 1.846 MB / 271 MB, free: 7.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.003542, allocations: 0.9951 MB / 272 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.547e-05/0.003617, allocations: 4 kB / 272 MB, free: 6.961 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004763/0.004093, allocations: 172.5 kB / 272.2 MB, free: 6.793 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001947/0.004288, allocations: 132.8 kB / 272.3 MB, free: 6.664 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.004531, allocations: 178.7 kB / 272.5 MB, free: 6.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.004712, allocations: 211.3 kB / 272.7 MB, free: 6.285 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.647e-05/0.004788, allocations: 13.75 kB / 272.7 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.004896, allocations: 111.7 kB / 272.8 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.279e-05/0.004989, allocations: 79.78 kB / 272.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.005009, allocations: 12 kB / 272.9 MB, free: 6.07 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.265e-05/0.005102, allocations: 59.89 kB / 273 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.431e-05/0.005156, allocations: 48.47 kB / 273 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.481e-05/0.005201, allocations: 49.5 kB / 273.1 MB, free: 5.918 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.005385, allocations: 163.4 kB / 273.2 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.353e-06/0.005387, allocations: 0 / 273.2 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.005387, allocations: 4 kB / 273.2 MB, free: 5.754 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.00539, allocations: 0 / 273.2 MB, free: 5.754 MB / 250.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.0004706/0.005861, allocations: 0.5561 MB / 273.8 MB, free: 5.156 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.654e-05/0.005887, allocations: 12.69 kB / 273.8 MB, free: 5.145 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/0.005928, allocations: 25.44 kB / 273.8 MB, free: 5.121 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.006096, allocations: 212.3 kB / 274 MB, free: 4.887 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.006111, allocations: 5.312 kB / 274 MB, free: 4.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.006122, allocations: 11.94 kB / 274 MB, free: 4.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.006239, allocations: 100.9 kB / 274.1 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.006245, allocations: 4 kB / 274.2 MB, free: 4.746 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.006252, allocations: 0 / 274.2 MB, free: 4.746 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.006257, allocations: 4 kB / 274.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.817e-05/0.006295, allocations: 23.91 kB / 274.2 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.006665, allocations: 0.6846 MB / 274.9 MB, free: 3.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.006776, allocations: 113.4 kB / 275 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.362e-05/0.006809, allocations: 43.03 kB / 275 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.006822, allocations: 8 kB / 275 MB, free: 3.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001056/0.006928, allocations: 120 kB / 275.1 MB, free: 3.637 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.006929, allocations: 0 / 275.1 MB, free: 3.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001805/0.00711, allocations: 121.5 kB / 275.3 MB, free: 3.512 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.007148, allocations: 110.8 kB / 275.4 MB, free: 3.379 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.007297, allocations: 288.2 kB / 275.6 MB, free: 3.078 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.007311, allocations: 33.7 kB / 275.7 MB, free: 3.039 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.007377, allocations: 174.8 kB / 275.9 MB, free: 2.863 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.007403, allocations: 31.73 kB / 275.9 MB, free: 2.832 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.007441, allocations: 43.41 kB / 275.9 MB, free: 2.781 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.007547, allocations: 0.5195 MB / 276.4 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.936e-05/0.007566, allocations: 11.98 kB / 276.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.221e-05/0.007628, allocations: 91.81 kB / 276.5 MB, free: 2.117 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.528e-05/0.007694, allocations: 74.86 kB / 276.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.007695, allocations: 0 / 276.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000106/0.007801, allocations: 117.5 kB / 276.7 MB, free: 1.902 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.00781, allocations: 8.125 kB / 276.7 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.007815, allocations: 4 kB / 276.7 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.522e-06/0.007822, allocations: 0 / 276.7 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.353e-05/0.007875, allocations: 19.92 kB / 276.8 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.007879, allocations: 4 kB / 276.8 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.252e-05/0.007932, allocations: 23.88 kB / 276.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.007938, allocations: 0 / 276.8 MB, free: 1.844 MB / 250.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 7.067e-05/0.008008, allocations: 169.4 kB / 277 MB, free: 1.668 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.434e-05/0.008033, allocations: 27.86 kB / 277 MB, free: 1.641 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.008135, allocations: 99.36 kB / 277.1 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.008138, allocations: 4 kB / 277.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.00814, allocations: 0 / 277.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.008143, allocations: 0 / 277.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.00825, allocations: 153.1 kB / 277.2 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.008251, allocations: 0 / 277.2 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.719e-05/0.008268, allocations: 8 kB / 277.2 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.008269, allocations: 0 / 277.2 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-06/0.008275, allocations: 0 / 277.2 MB, free: 1.348 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.008277, allocations: 4 kB / 277.2 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.008277, allocations: 3.938 kB / 277.3 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.008401, allocations: 179.6 kB / 277.4 MB, free: 1.133 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.983e-05/0.008421, allocations: 23.8 kB / 277.4 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.00844, allocations: 8.109 kB / 277.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.068e-05/0.00848, allocations: 12 kB / 277.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.008516, allocations: 15.97 kB / 277.5 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.008526, allocations: 4 kB / 277.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.435e-05/0.008611, allocations: 205.1 kB / 277.7 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008611, allocations: 0 / 277.7 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001608/0.008772, allocations: 39.88 kB / 277.7 MB, free: 0.832 MB / 250.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.0006879/0.009459, allocations: 400.7 kB / 278.1 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.009563, allocations: 59.72 kB / 278.2 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.009564, allocations: 4.062 kB / 278.2 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.461e-05/0.009608, allocations: 47.58 kB / 278.2 MB, free: 472 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.009809, allocations: 59.48 kB / 278.3 MB, free: 420 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.01035, allocations: 317.9 kB / 278.6 MB, free: 64 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.764e-05/0.0104, allocations: 75.98 kB / 278.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.504e-05/0.01045, allocations: 25.53 kB / 278.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.423e-05/0.01054, allocations: 102.2 kB / 278.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01054, allocations: 0 / 278.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of Templates: time 0.004256/0.0148, allocations: 3.191 MB / 282 MB, free: 12.7 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.881504694931209]