Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.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.0009751/0.0009751, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.001426/0.001426, allocations: 169 kB / 24.25 MB, free: 308 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9212/0.9212, allocations: 158.6 MB / 186 MB, free: 2.496 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1324/0.1324, allocations: 32.37 MB / 270.7 MB, free: 14.75 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 347.6 MB, free: 9.812 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.865e-05/4.08e-05, allocations: 8.281 kB / 347.6 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001403/0.001444, allocations: 0.5082 MB / 348.1 MB, free: 9.301 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.002806, allocations: 1.383 MB / 349.5 MB, free: 7.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.559e-05/0.002851, allocations: 4 kB / 349.5 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.012e-05/0.002872, allocations: 0 / 349.5 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002903/0.003162, allocations: 19.81 kB / 349.5 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.00433, allocations: 268.6 kB / 349.8 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.523e-05/0.004395, allocations: 4 kB / 349.8 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.072e-05/0.004436, allocations: 0 / 349.8 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.473e-05/0.004471, allocations: 11.92 kB / 349.8 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.871e-05/0.004519, allocations: 3.984 kB / 349.8 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.00453, allocations: 0 / 349.8 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002458/0.006988, allocations: 0.9977 MB / 350.8 MB, free: 6.73 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/0.007002, allocations: 4 kB / 350.8 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.007031, allocations: 0 / 350.8 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003357/0.007367, allocations: 215.4 kB / 351 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.007374, allocations: 4 kB / 351 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.007375, allocations: 4 kB / 351 MB, free: 6.508 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.007381, allocations: 0 / 351 MB, free: 6.508 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003249/0.007706, allocations: 413.6 kB / 351.5 MB, free: 6.062 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.007762, allocations: 8.031 kB / 351.5 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.444e-05/0.007817, allocations: 4.938 kB / 351.5 MB, free: 6.051 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.159e-05/0.007908, allocations: 108.9 kB / 351.6 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.007924, allocations: 384 / 351.6 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.007936, allocations: 4.375 kB / 351.6 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.008039, allocations: 63.89 kB / 351.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.008047, allocations: 4.188 kB / 351.6 MB, free: 5.836 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.00806, allocations: 8.125 kB / 351.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.00807, allocations: 0 / 351.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.401e-05/0.008084, allocations: 25.7 kB / 351.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000109/0.008193, allocations: 108.6 kB / 351.8 MB, free: 5.656 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.395e-05/0.008237, allocations: 52.75 kB / 351.8 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.833e-05/0.008256, allocations: 37.48 kB / 351.9 MB, free: 5.539 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.751e-06/0.008261, allocations: 0 / 351.9 MB, free: 5.539 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.008298, allocations: 67.03 kB / 351.9 MB, free: 5.457 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.814e-06/0.008299, allocations: 0 / 351.9 MB, free: 5.457 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001863/0.008486, allocations: 122.8 kB / 352.1 MB, free: 5.312 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.008517, allocations: 81.05 kB / 352.1 MB, free: 5.215 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.041e-05/0.008588, allocations: 157.9 kB / 352.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-06/0.008595, allocations: 25.7 kB / 352.3 MB, free: 5.012 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.588e-05/0.008611, allocations: 126.9 kB / 352.4 MB, free: 4.883 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.008629, allocations: 0 / 352.4 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.008658, allocations: 23.36 kB / 352.5 MB, free: 4.852 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.83e-05/0.008716, allocations: 492.1 kB / 352.9 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.008733, allocations: 33.7 kB / 353 MB, free: 4.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.668e-06/0.008742, allocations: 25.95 kB / 353 MB, free: 4.289 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.768e-05/0.00877, allocations: 75.03 kB / 353.1 MB, free: 4.199 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.008772, allocations: 0 / 353.1 MB, free: 4.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.125e-05/0.008823, allocations: 89.09 kB / 353.2 MB, free: 4.094 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.008848, allocations: 29.7 kB / 353.2 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.008853, allocations: 4 kB / 353.2 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.008867, allocations: 4 kB / 353.2 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.643e-06/0.008869, allocations: 3.938 kB / 353.2 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.008874, allocations: 3.984 kB / 353.2 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.008889, allocations: 0 / 353.2 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.008896, allocations: 4.031 kB / 353.2 MB, free: 4.039 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 4.71e-05/0.008943, allocations: 190.3 kB / 353.4 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.522e-06/0.008949, allocations: 0 / 353.4 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.008962, allocations: 7.156 kB / 353.4 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.008963, allocations: 3.938 kB / 353.4 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.008968, allocations: 3.938 kB / 353.4 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.008971, allocations: 0 / 353.4 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.075e-05/0.009011, allocations: 108.6 kB / 353.5 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.009012, allocations: 0 / 353.5 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.009013, allocations: 3.984 kB / 353.5 MB, free: 3.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.009014, allocations: 3.984 kB / 353.5 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.009024, allocations: 4 kB / 353.5 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.009025, allocations: 0 / 353.5 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.009026, allocations: 0 / 353.5 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.313e-05/0.009089, allocations: 139.7 kB / 353.7 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-06/0.009093, allocations: 0 / 353.7 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.009108, allocations: 0 / 353.7 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.99e-06/0.009113, allocations: 4 kB / 353.7 MB, free: 3.492 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.163e-05/0.009124, allocations: 3.938 kB / 353.7 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.009127, allocations: 0 / 353.7 MB, free: 3.488 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.565e-05/0.009142, allocations: 131.2 kB / 353.8 MB, free: 3.359 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009142, allocations: 0 / 353.8 MB, free: 3.359 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002259/0.009368, allocations: 67.73 kB / 353.9 MB, free: 3.293 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.000556/0.009924, allocations: 381.4 kB / 354.2 MB, free: 2.941 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.312e-05/0.01002, allocations: 122.5 kB / 354.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01002, allocations: 0 / 354.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.645e-05/0.01004, allocations: 92.8 kB / 354.4 MB, free: 2.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001052/0.01014, allocations: 0 / 354.4 MB, free: 2.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001741/0.01032, allocations: 128 kB / 354.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.091e-05/0.01034, allocations: 51.36 kB / 354.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.083e-06/0.01034, allocations: 0 / 354.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.076e-05/0.01035, allocations: 8.5 kB / 354.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01035, allocations: 4.125 kB / 354.6 MB, free: 2.438 MB / 282.7 MB Notification: Performance of Templates: time 0.003522/0.01388, allocations: 1.658 MB / 356.3 MB, free: 0.7773 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.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: 3.2472749610897154]