Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 88.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 149.3 kB / 24.26 MB, free: 180 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.428e-05/3.608e-05, allocations: 6.25 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00372/0.003756, allocations: 1.806 MB / 269.1 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.005893, allocations: 0.9855 MB / 270.1 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.006042, allocations: 7.938 kB / 270.1 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007669/0.006809, allocations: 171.3 kB / 270.3 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004198/0.007229, allocations: 131.5 kB / 270.4 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.007784, allocations: 171.4 kB / 270.6 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.008145, allocations: 211.2 kB / 270.8 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.008269, allocations: 17.8 kB / 270.8 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.008513, allocations: 111.7 kB / 270.9 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.00868, allocations: 71.84 kB / 271 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.008712, allocations: 8 kB / 271 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.008889, allocations: 71.81 kB / 271 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.134e-05/0.00898, allocations: 51.83 kB / 271.1 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.401e-05/0.009074, allocations: 43.86 kB / 271.1 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004591/0.009533, allocations: 219.3 kB / 271.3 MB, free: 2.676 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.009537, allocations: 0 / 271.3 MB, free: 2.676 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.009538, allocations: 0 / 271.3 MB, free: 2.676 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.009546, allocations: 0 / 271.3 MB, free: 2.676 MB / 250.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.001116/0.01066, allocations: 466.6 kB / 271.8 MB, free: 2.184 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.01071, allocations: 12.92 kB / 271.8 MB, free: 2.172 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.01081, allocations: 24.78 kB / 271.8 MB, free: 2.148 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.0112, allocations: 204.9 kB / 272 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.01123, allocations: 8.375 kB / 272 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.01125, allocations: 11.92 kB / 272.1 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.01152, allocations: 113 kB / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.01153, allocations: 0 / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.01155, allocations: 4 kB / 272.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.01155, allocations: 0 / 272.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.01173, allocations: 55.91 kB / 272.2 MB, free: 1.715 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.01282, allocations: 0.5283 MB / 272.8 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.01314, allocations: 123.9 kB / 272.9 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.01327, allocations: 50.5 kB / 272.9 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.01329, allocations: 4 kB / 272.9 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.01357, allocations: 121.9 kB / 273 MB, free: 0.793 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.01357, allocations: 0 / 273 MB, free: 0.793 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006007/0.01417, allocations: 185.5 kB / 273.2 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.011e-05/0.01426, allocations: 110.8 kB / 273.3 MB, free: 484 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003687/0.01463, allocations: 285.7 kB / 273.6 MB, free: 188 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.01466, allocations: 33.7 kB / 273.6 MB, free: 148 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.01477, allocations: 124.1 kB / 273.8 MB, free: 20 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.01484, allocations: 32 kB / 273.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.695e-05/0.01491, allocations: 33.7 kB / 273.8 MB, free: 15.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.01511, allocations: 338.6 kB / 274.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.01523, allocations: 31.98 kB / 274.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.0154, allocations: 110.1 kB / 274.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.01563, allocations: 108.8 kB / 274.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01564, allocations: 0 / 274.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003251/0.01596, allocations: 141.5 kB / 274.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.01598, allocations: 4 kB / 274.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.01599, allocations: 4 kB / 274.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.016, allocations: 3.938 kB / 274.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.305e-05/0.0161, allocations: 20.08 kB / 274.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.01611, allocations: 4 kB / 274.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.01624, allocations: 27.81 kB / 274.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.01625, allocations: 4 kB / 274.6 MB, free: 15.12 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.0001675/0.01642, allocations: 149.6 kB / 274.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.01647, allocations: 23.86 kB / 274.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002803/0.01675, allocations: 111.4 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.01675, allocations: 0 / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.01676, allocations: 8 kB / 274.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.01676, allocations: 0 / 274.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002457/0.01701, allocations: 173.2 kB / 275.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01701, allocations: 0 / 275.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.541e-05/0.01706, allocations: 15.92 kB / 275.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.01706, allocations: 0 / 275.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.01708, allocations: 8 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01708, allocations: 0 / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01708, allocations: 128 / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003886/0.01747, allocations: 202.3 kB / 275.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.01751, allocations: 19.84 kB / 275.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.01755, allocations: 11.98 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.01765, allocations: 15.86 kB / 275.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.01772, allocations: 19.97 kB / 275.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.01774, allocations: 4 kB / 275.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002675/0.01801, allocations: 217.1 kB / 275.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01801, allocations: 0 / 275.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002874/0.0183, allocations: 35.95 kB / 275.6 MB, free: 14.05 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.002037/0.02033, allocations: 447.2 kB / 276 MB, free: 13.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003128/0.02065, allocations: 95.83 kB / 276.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.02065, allocations: 0 / 276.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.02081, allocations: 51.97 kB / 276.2 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.02119, allocations: 48.39 kB / 276.2 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007351/0.02193, allocations: 354.9 kB / 276.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.02207, allocations: 123.6 kB / 276.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.089e-05/0.02216, allocations: 25.62 kB / 276.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.4e-05/0.02223, allocations: 24.48 kB / 276.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02223, allocations: 7.938 kB / 276.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Templates: time 0.00782/0.03005, allocations: 2.874 MB / 279.6 MB, free: 10.2 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.371172785991803]