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.001373/0.001373, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.001432/0.001432, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001611/0.001611, allocations: 55.91 kB / 378.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2641, allocations: 53.35 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003519/0.2676, allocations: 1.87 MB / 433.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.2699, allocations: 1.208 MB / 434.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.2701, allocations: 7.938 kB / 434.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008044/0.2709, allocations: 171.5 kB / 434.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000454/0.2713, allocations: 167.3 kB / 435 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.2718, allocations: 143.6 kB / 435.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.2721, allocations: 227.2 kB / 435.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.2722, allocations: 17.75 kB / 435.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.2724, allocations: 95.61 kB / 435.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.2726, allocations: 95.59 kB / 435.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/0.2726, allocations: 8 kB / 435.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.2727, allocations: 59.91 kB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.754e-05/0.2728, allocations: 51.83 kB / 435.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.739e-05/0.2729, allocations: 71.55 kB / 435.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.2732, allocations: 236.3 kB / 436 MB, free: 2.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2733, allocations: 0 / 436 MB, free: 2.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2733, allocations: 0 / 436 MB, free: 2.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.2733, allocations: 4 kB / 436 MB, free: 2.531 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.0008875/0.2741, allocations: 470.6 kB / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2742, allocations: 8.031 kB / 436.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.011e-05/0.2742, allocations: 24.8 kB / 436.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.2746, allocations: 201.2 kB / 436.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.2746, allocations: 4.375 kB / 436.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.2746, allocations: 12.12 kB / 436.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.2749, allocations: 125.8 kB / 436.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2749, allocations: 0 / 436.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.2749, allocations: 0 / 436.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2749, allocations: 0 / 436.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.2751, allocations: 51.91 kB / 436.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007465/0.2758, allocations: 0.5862 MB / 437.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.2761, allocations: 119.9 kB / 437.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.2762, allocations: 50.56 kB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.2762, allocations: 4 kB / 437.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.2765, allocations: 121.8 kB / 437.8 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.2765, allocations: 4 kB / 437.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000473/0.277, allocations: 181.4 kB / 437.9 MB, free: 408 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.85e-05/0.2771, allocations: 132.5 kB / 438.1 MB, free: 244 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.2774, allocations: 297 kB / 438.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.2774, allocations: 29.7 kB / 438.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.694e-05/0.2775, allocations: 132.5 kB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/0.2776, allocations: 27.75 kB / 438.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.687e-05/0.2776, allocations: 37.7 kB / 438.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2778, allocations: 334.8 kB / 438.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.039e-05/0.2779, allocations: 27.98 kB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.278, allocations: 89.98 kB / 439 MB, free: 15.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.2782, allocations: 92.22 kB / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2782, allocations: 0 / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002833/0.2785, allocations: 145.5 kB / 439.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.2785, allocations: 10.28 kB / 439.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2785, allocations: 4 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.2785, allocations: 0 / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.856e-05/0.2786, allocations: 16 kB / 439.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.2786, allocations: 7.938 kB / 439.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.2787, allocations: 20.48 kB / 439.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.2787, allocations: 4 kB / 439.3 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.0001509/0.2789, allocations: 150.5 kB / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.2789, allocations: 23.86 kB / 439.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002368/0.2792, allocations: 111.3 kB / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2792, allocations: 0 / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2792, allocations: 0 / 439.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2792, allocations: 7.938 kB / 439.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000245/0.2794, allocations: 220.6 kB / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2794, allocations: 0 / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.375e-05/0.2795, allocations: 11.98 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2795, allocations: 0 / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.2795, allocations: 8 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-06/0.2795, allocations: 0 / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2795, allocations: 0 / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/0.2798, allocations: 186.5 kB / 440 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.2798, allocations: 19.83 kB / 440 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.2799, allocations: 12 kB / 440.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.405e-05/0.28, allocations: 7.984 kB / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.28, allocations: 19.92 kB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.28, allocations: 4 kB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.2803, allocations: 220.4 kB / 440.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2803, allocations: 0 / 440.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.2805, allocations: 36 kB / 440.3 MB, free: 13.82 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 (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.001526/0.2821, allocations: 423.2 kB / 440.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002773/0.2823, allocations: 87.84 kB / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2823, allocations: 0 / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.2825, allocations: 51.91 kB / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.2828, allocations: 52.16 kB / 440.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006397/0.2835, allocations: 361.1 kB / 441.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.2838, allocations: 0.7281 MB / 442 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.232e-05/0.2839, allocations: 33.45 kB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.412e-05/0.284, allocations: 23.44 kB / 442.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.284, allocations: 0 / 442.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Templates: time 0.006862/0.2908, allocations: 2.843 MB / 444.9 MB, free: 9.352 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/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: 4.688147988868877]