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.00179/0.00179, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.002087/0.002087, allocations: 211 kB / 24.48 MB, free: 3.941 MB / 14.72 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.456/1.456, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001687/0.001687, allocations: 47.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2433, allocations: 53.35 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003682/0.247, allocations: 1.824 MB / 434.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.2493, allocations: 1.118 MB / 435.3 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.2494, allocations: 3.938 kB / 435.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006938/0.2501, allocations: 179.1 kB / 435.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005027/0.2506, allocations: 167.3 kB / 435.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.251, allocations: 151.5 kB / 435.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.2514, allocations: 215.4 kB / 436 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.2515, allocations: 13.75 kB / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.2516, allocations: 95.55 kB / 436.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.2518, allocations: 87.66 kB / 436.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.2518, allocations: 12 kB / 436.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.252, allocations: 59.91 kB / 436.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.448e-05/0.2521, allocations: 47.83 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.284e-05/0.2522, allocations: 63.59 kB / 436.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.2526, allocations: 225.8 kB / 436.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2526, allocations: 3.938 kB / 436.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2526, allocations: 4 kB / 436.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.2526, allocations: 4 kB / 436.6 MB, free: 2.48 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.001022/0.2536, allocations: 468.8 kB / 437 MB, free: 1.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.2537, allocations: 8.031 kB / 437 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.121e-05/0.2538, allocations: 20.8 kB / 437 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.2541, allocations: 209.1 kB / 437.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2542, allocations: 4.375 kB / 437.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.2542, allocations: 8.125 kB / 437.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.2544, allocations: 117 kB / 437.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2545, allocations: 0 / 437.4 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2545, allocations: 4 kB / 437.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.2545, allocations: 0 / 437.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.2546, allocations: 59.89 kB / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007219/0.2554, allocations: 0.5437 MB / 438 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.2556, allocations: 119.9 kB / 438.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.2558, allocations: 54.56 kB / 438.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.2558, allocations: 4 kB / 438.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.2561, allocations: 125.9 kB / 438.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.2561, allocations: 0 / 438.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005542/0.2566, allocations: 181.4 kB / 438.5 MB, free: 408 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/0.2567, allocations: 102.8 kB / 438.6 MB, free: 280 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.2571, allocations: 297.1 kB / 438.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.2571, allocations: 25.7 kB / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.2572, allocations: 128.2 kB / 439 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.758e-05/0.2573, allocations: 35.73 kB / 439 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.2573, allocations: 37.64 kB / 439.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2575, allocations: 330.8 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-05/0.2576, allocations: 31.98 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.2578, allocations: 102.8 kB / 439.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.258, allocations: 100.2 kB / 439.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.258, allocations: 4.031 kB / 439.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003029/0.2583, allocations: 157.3 kB / 439.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2583, allocations: 4 kB / 439.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.2583, allocations: 4.625 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2583, allocations: 0 / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.342e-05/0.2584, allocations: 12 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.2584, allocations: 4 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.2585, allocations: 12.08 kB / 439.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2586, allocations: 16 kB / 439.8 MB, free: 14.92 MB / 350.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.000157/0.2587, allocations: 154.2 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.334e-05/0.2588, allocations: 23.86 kB / 440 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002604/0.259, allocations: 119.4 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.259, allocations: 4 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.259, allocations: 0 / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.259, allocations: 0 / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.2592, allocations: 181.1 kB / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2593, allocations: 0 / 440.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.2593, allocations: 16 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2593, allocations: 0 / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.2593, allocations: 7.984 kB / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2593, allocations: 0 / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2593, allocations: 0 / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.2597, allocations: 190.5 kB / 440.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-05/0.2597, allocations: 19.89 kB / 440.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.2597, allocations: 8 kB / 440.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.2598, allocations: 11.98 kB / 440.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.2599, allocations: 15.98 kB / 440.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2599, allocations: 7.984 kB / 440.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002446/0.2602, allocations: 216.5 kB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2602, allocations: 0 / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000279/0.2604, allocations: 43.83 kB / 440.8 MB, free: 13.85 MB / 350.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.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.001669/0.2621, allocations: 459.8 kB / 441.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003021/0.2624, allocations: 95.83 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2624, allocations: 4.188 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.2626, allocations: 55.91 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000372/0.2629, allocations: 48.25 kB / 441.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007225/0.2637, allocations: 382.6 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2638, allocations: 123.7 kB / 442 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.2639, allocations: 27.42 kB / 442 MB, free: 12.8 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2639, allocations: 0 / 442 MB, free: 12.8 MB / 350.1 MB Notification: Performance of Templates: time 0.005913/0.2698, allocations: 2.996 MB / 445 MB, free: 9.816 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.5843164143152535]