Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.012/1.012, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.086e-05/3.241e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00279/0.002823, allocations: 1.883 MB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.004408, allocations: 1.152 MB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.004521, allocations: 3.938 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006618/0.005183, allocations: 179.4 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003142/0.005497, allocations: 171.1 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.00578, allocations: 151.5 kB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.006007, allocations: 219.3 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.006108, allocations: 9.797 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.006238, allocations: 115.7 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.006359, allocations: 83.78 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.006383, allocations: 8 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.0065, allocations: 67.83 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.006571, allocations: 51.83 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.158e-05/0.006633, allocations: 43.84 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.006897, allocations: 171.4 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.0069, allocations: 4 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006901, allocations: 0 / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.006907, allocations: 0 / 277.3 MB, free: 13.21 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.0006547/0.007562, allocations: 0.5517 MB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.007607, allocations: 12.03 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.969e-05/0.007667, allocations: 28.8 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.007939, allocations: 212.4 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.007959, allocations: 384 / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.007978, allocations: 16.31 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.00816, allocations: 112.5 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.008171, allocations: 7.938 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.008183, allocations: 4 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.00819, allocations: 0 / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.989e-05/0.00825, allocations: 23.92 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005528/0.008803, allocations: 0.7268 MB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.008962, allocations: 133.3 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.104e-05/0.009013, allocations: 47.05 kB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.009033, allocations: 0 / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001396/0.009173, allocations: 120 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.009174, allocations: 0 / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002517/0.009426, allocations: 137.5 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.009473, allocations: 106.8 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.00968, allocations: 296.3 kB / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.009697, allocations: 29.7 kB / 279.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.337e-05/0.009791, allocations: 174.9 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.102e-05/0.009822, allocations: 31.73 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.009865, allocations: 39.5 kB / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.009999, allocations: 0.5117 MB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.746e-05/0.01004, allocations: 11.98 kB / 280.6 MB, free: 9.613 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.513e-05/0.01011, allocations: 99.81 kB / 280.7 MB, free: 9.484 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.202e-05/0.0102, allocations: 90.3 kB / 280.7 MB, free: 9.375 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.01021, allocations: 0 / 280.7 MB, free: 9.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001485/0.01035, allocations: 126.1 kB / 280.9 MB, free: 9.246 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.01037, allocations: 4 kB / 280.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01037, allocations: 4 kB / 280.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.01039, allocations: 0 / 280.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.336e-05/0.01047, allocations: 20 kB / 280.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.01048, allocations: 7.984 kB / 280.9 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.688e-05/0.01054, allocations: 15.98 kB / 280.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.01055, allocations: 7.938 kB / 280.9 MB, free: 9.188 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 0.0001054/0.01065, allocations: 168.5 kB / 281.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.01069, allocations: 35.86 kB / 281.1 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.01086, allocations: 103.5 kB / 281.2 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01086, allocations: 4 kB / 281.2 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.01086, allocations: 0 / 281.2 MB, free: 8.863 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.01087, allocations: 3.984 kB / 281.2 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.01102, allocations: 188.5 kB / 281.4 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.01103, allocations: 4 kB / 281.4 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.479e-05/0.01105, allocations: 4 kB / 281.4 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.01106, allocations: 4 kB / 281.4 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.01107, allocations: 4 kB / 281.4 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.01107, allocations: 0 / 281.4 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.01107, allocations: 8 kB / 281.4 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001772/0.01125, allocations: 183.5 kB / 281.6 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.353e-05/0.01127, allocations: 15.91 kB / 281.6 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.0113, allocations: 7.984 kB / 281.6 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.604e-05/0.01134, allocations: 8 kB / 281.6 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.638e-05/0.0114, allocations: 15.97 kB / 281.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.01141, allocations: 4 kB / 281.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.01154, allocations: 209.1 kB / 281.9 MB, free: 8.152 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01154, allocations: 0 / 281.9 MB, free: 8.152 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001864/0.01173, allocations: 43.88 kB / 281.9 MB, free: 8.109 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.0008806/0.01261, allocations: 392.1 kB / 282.3 MB, free: 7.863 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001606/0.01277, allocations: 79.59 kB / 282.4 MB, free: 7.781 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.01277, allocations: 7.938 kB / 282.4 MB, free: 7.773 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.844e-05/0.01283, allocations: 43.59 kB / 282.4 MB, free: 7.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.01309, allocations: 66.95 kB / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004881/0.01358, allocations: 326.2 kB / 282.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.964e-05/0.01362, allocations: 79.97 kB / 282.9 MB, free: 7.215 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.619e-05/0.01368, allocations: 29.88 kB / 282.9 MB, free: 7.188 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.01373, allocations: 28.48 kB / 282.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01373, allocations: 0 / 282.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of Templates: time 0.005129/0.01886, allocations: 2.9 MB / 285.8 MB, free: 4.293 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 3.1594906393438578]