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.001752/0.001752, allocations: 85.44 kB / 20.68 MB, free: 1.035 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.001745/0.001745, allocations: 163.6 kB / 23.95 MB, free: 4.168 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.464/1.464, allocations: 177.1 MB / 204.3 MB, free: 9.199 MB / 190.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 2.314e-06/2.314e-06, allocations: 0 / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.202e-05/4.433e-05, allocations: 7.375 kB / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003698/0.003743, allocations: 1.823 MB / 326.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.00626, allocations: 1.126 MB / 328 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.006389, allocations: 5.188 kB / 328 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007755/0.007165, allocations: 172.2 kB / 328.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005551/0.00772, allocations: 172.3 kB / 328.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.008205, allocations: 155.5 kB / 328.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.008558, allocations: 220.9 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.008687, allocations: 9.859 kB / 328.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.008938, allocations: 118.8 kB / 328.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.009139, allocations: 81.31 kB / 328.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/0.009176, allocations: 11.56 kB / 328.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000225/0.009401, allocations: 60.55 kB / 329 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.009521, allocations: 47.98 kB / 329 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.009627, allocations: 45.38 kB / 329.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005526/0.01018, allocations: 230.1 kB / 329.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.01018, allocations: 0 / 329.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.01019, allocations: 3.938 kB / 329.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.01019, allocations: 0.9688 kB / 329.3 MB, free: 14.01 MB / 302.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.0009977/0.01119, allocations: 463.4 kB / 329.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.01124, allocations: 8.594 kB / 329.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.01131, allocations: 22.62 kB / 329.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/0.01169, allocations: 204.7 kB / 330 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.01172, allocations: 11.58 kB / 330 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.01174, allocations: 9.781 kB / 330 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.01203, allocations: 109.2 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.01205, allocations: 3.938 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.01206, allocations: 1.672 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.01207, allocations: 1.562 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.01223, allocations: 56.03 kB / 330.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.01287, allocations: 0.5322 MB / 330.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.01316, allocations: 138.8 kB / 330.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.01327, allocations: 44.23 kB / 330.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.0133, allocations: 6.828 kB / 330.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.01354, allocations: 126.6 kB / 331 MB, free: 12.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.482e-06/0.01354, allocations: 0 / 331 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004934/0.01403, allocations: 175.8 kB / 331.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.129e-05/0.01412, allocations: 105.2 kB / 331.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.01449, allocations: 304.7 kB / 331.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.01451, allocations: 30.86 kB / 331.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.01462, allocations: 121.3 kB / 331.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.01466, allocations: 41.23 kB / 331.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.01472, allocations: 32.45 kB / 331.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.0149, allocations: 329.1 kB / 332.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.752e-05/0.015, allocations: 41.34 kB / 332.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.01515, allocations: 100.6 kB / 332.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.01535, allocations: 106 kB / 332.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01535, allocations: 1.094 kB / 332.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002972/0.01565, allocations: 147 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.01567, allocations: 5.375 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.01568, allocations: 1.094 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.01569, allocations: 2.188 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.363e-05/0.01577, allocations: 11.78 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.01578, allocations: 6 kB / 332.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.01596, allocations: 15.95 kB / 332.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.01597, allocations: 4.906 kB / 332.6 MB, free: 11.3 MB / 302.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.0001638/0.01614, allocations: 159.7 kB / 332.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.404e-05/0.01618, allocations: 26.06 kB / 332.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002489/0.01643, allocations: 110.3 kB / 332.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.01643, allocations: 6.188 kB / 332.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.01644, allocations: 1.219 kB / 332.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01644, allocations: 0.9375 kB / 332.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002273/0.01667, allocations: 184.3 kB / 333 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01667, allocations: 0 / 333 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.989e-05/0.01671, allocations: 14.58 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.01671, allocations: 1.188 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.01673, allocations: 6.219 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01673, allocations: 1.125 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01673, allocations: 1.219 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003289/0.01706, allocations: 188.5 kB / 333.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.0171, allocations: 22.84 kB / 333.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.01714, allocations: 5.969 kB / 333.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.98e-05/0.01724, allocations: 14.36 kB / 333.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.01729, allocations: 13.92 kB / 333.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.01731, allocations: 8.641 kB / 333.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002425/0.01756, allocations: 216.7 kB / 333.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01756, allocations: 0 / 333.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002763/0.01783, allocations: 40.19 kB / 333.6 MB, free: 10.55 MB / 302.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.001611/0.01944, allocations: 445.3 kB / 334 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.01974, allocations: 105 kB / 334.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.01974, allocations: 0 / 334.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.01988, allocations: 50.83 kB / 334.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.02026, allocations: 51.92 kB / 334.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007189/0.02098, allocations: 357.3 kB / 334.6 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.02113, allocations: 127.7 kB / 334.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.339e-05/0.02121, allocations: 29.34 kB / 334.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.521e-05/0.0213, allocations: 23.83 kB / 334.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.0213, allocations: 0 / 334.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of Templates: time 0.007731/0.02903, allocations: 2.866 MB / 337.6 MB, free: 8.406 MB / 302.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.439547576010227]