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.0009902/0.0009902, allocations: 81.86 kB / 21.42 MB, free: 3.074 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.00129/0.00129, allocations: 172 kB / 24.82 MB, free: 8.77 MB / 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.035/1.035, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.733e-06/1.733e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.635e-05, allocations: 10.25 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002948/0.002974, allocations: 1.867 MB / 275.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.004472, allocations: 1.14 MB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.004579, allocations: 0 / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005452/0.005124, allocations: 171.4 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.005467, allocations: 183.2 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.005816, allocations: 143.5 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002621/0.006078, allocations: 223.2 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.006179, allocations: 9.812 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.006337, allocations: 123.6 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.006447, allocations: 83.78 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.00647, allocations: 12 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.006591, allocations: 59.89 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.186e-05/0.006653, allocations: 47.84 kB / 277.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.751e-05/0.0067, allocations: 43.84 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.006933, allocations: 175.3 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006936, allocations: 0 / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.006937, allocations: 0 / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.006941, allocations: 0 / 277.6 MB, free: 13.02 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.0005783/0.007519, allocations: 0.5517 MB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.00756, allocations: 16.02 kB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.007613, allocations: 28.8 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.007824, allocations: 212.3 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.007844, allocations: 8.375 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.007856, allocations: 8.359 kB / 278.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.008003, allocations: 92.97 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.008012, allocations: 7.938 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.008025, allocations: 4 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.008031, allocations: 3.938 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.815e-05/0.008079, allocations: 35.95 kB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005039/0.008583, allocations: 0.6806 MB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.00874, allocations: 117.4 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.723e-05/0.008777, allocations: 46.98 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.008796, allocations: 4 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001215/0.008917, allocations: 112 kB / 279.6 MB, free: 10.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.694e-06/0.008919, allocations: 4 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002132/0.009132, allocations: 137.4 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.009182, allocations: 106.8 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.009361, allocations: 288.2 kB / 280.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.009376, allocations: 29.7 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.00953, allocations: 178.8 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.00956, allocations: 35.72 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.484e-05/0.009605, allocations: 39.36 kB / 280.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.009718, allocations: 0.504 MB / 280.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.306e-05/0.009741, allocations: 11.98 kB / 280.9 MB, free: 9.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.682e-05/0.009798, allocations: 99.92 kB / 281 MB, free: 9.371 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.711e-05/0.009865, allocations: 82.34 kB / 281 MB, free: 9.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.009867, allocations: 0 / 281 MB, free: 9.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001219/0.009989, allocations: 117.9 kB / 281.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.01, allocations: 10.64 kB / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.01001, allocations: 8.062 kB / 281.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.01002, allocations: 4 kB / 281.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.936e-05/0.01008, allocations: 20.06 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.01008, allocations: 7.984 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.594e-05/0.01014, allocations: 7.984 kB / 281.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.01015, allocations: 8 kB / 281.2 MB, free: 9.086 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.442e-05/0.01023, allocations: 168.5 kB / 281.4 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.789e-05/0.01026, allocations: 35.72 kB / 281.4 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.01039, allocations: 91.44 kB / 281.5 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.01039, allocations: 4 kB / 281.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.01039, allocations: 0 / 281.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01039, allocations: 4 kB / 281.5 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.01053, allocations: 153.1 kB / 281.7 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.01053, allocations: 0 / 281.7 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.179e-05/0.01055, allocations: 11.98 kB / 281.7 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01055, allocations: 3.938 kB / 281.7 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.01056, allocations: 8 kB / 281.7 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.01056, allocations: 3.938 kB / 281.7 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01057, allocations: 0 / 281.7 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.0107, allocations: 167.6 kB / 281.9 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.01073, allocations: 19.89 kB / 281.9 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.01075, allocations: 11.94 kB / 281.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.487e-05/0.01079, allocations: 11.98 kB / 281.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.01083, allocations: 15.98 kB / 281.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.01084, allocations: 7.984 kB / 281.9 MB, free: 8.305 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000228/0.01107, allocations: 201 kB / 282.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01107, allocations: 0 / 282.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001861/0.01126, allocations: 39.89 kB / 282.2 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.0008206/0.01208, allocations: 400.5 kB / 282.6 MB, free: 7.816 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.0122, allocations: 71.58 kB / 282.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.0122, allocations: 0 / 282.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.849e-05/0.01225, allocations: 39.61 kB / 282.7 MB, free: 7.699 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.01248, allocations: 66.91 kB / 282.7 MB, free: 7.641 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003847/0.01286, allocations: 334.1 kB / 283.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.089e-05/0.0129, allocations: 79.98 kB / 283.1 MB, free: 7.18 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.059e-05/0.01295, allocations: 21.62 kB / 283.2 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.143e-05/0.01305, allocations: 102.2 kB / 283.3 MB, free: 7.059 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01305, allocations: 4 kB / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of Templates: time 0.004908/0.01795, allocations: 3.171 MB / 286.4 MB, free: 3.93 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: 2.8461475051008165]