Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001465/0.001465, allocations: 82.66 kB / 21.42 MB, free: 3.07 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.002124/0.002124, allocations: 166.8 kB / 24.82 MB, free: 9.211 MB / 18.57 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.185/1.185, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3321/0.3321, allocations: 34.26 MB / 296.1 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.824e-05, allocations: 5.406 kB / 378.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001585/0.001613, allocations: 489.1 kB / 379 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.004117, allocations: 1.399 MB / 380.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.572e-05/0.004152, allocations: 0 / 380.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.103e-05/0.004173, allocations: 0 / 380.4 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002368/0.00441, allocations: 11.88 kB / 380.4 MB, free: 0.5117 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.005454, allocations: 270 kB / 380.6 MB, free: 264 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.768e-05/0.005511, allocations: 11.94 kB / 380.6 MB, free: 252 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.928e-05/0.005551, allocations: 4 kB / 380.6 MB, free: 248 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.084e-05/0.005591, allocations: 4 kB / 380.6 MB, free: 244 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.922e-05/0.005641, allocations: 3.984 kB / 380.7 MB, free: 240 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.887e-06/0.00565, allocations: 0 / 380.7 MB, free: 240 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00322/0.008869, allocations: 0.9941 MB / 381.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.00888, allocations: 3.938 kB / 381.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.822e-05/0.008898, allocations: 4 kB / 381.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003321/0.00923, allocations: 207.5 kB / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.009232, allocations: 0 / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.009234, allocations: 0 / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.009238, allocations: 0 / 381.9 MB, free: 15.28 MB / 362.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.0003466/0.009585, allocations: 417.9 kB / 382.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.009625, allocations: 8.031 kB / 382.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.957e-05/0.009655, allocations: 8.891 kB / 382.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.15e-05/0.009736, allocations: 112.6 kB / 382.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.009748, allocations: 4.359 kB / 382.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.423e-06/0.009755, allocations: 384 / 382.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.884e-05/0.009833, allocations: 63.89 kB / 382.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.009841, allocations: 192 / 382.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.009848, allocations: 4.125 kB / 382.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.009853, allocations: 0 / 382.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.685e-05/0.00987, allocations: 29.7 kB / 382.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.07e-05/0.009961, allocations: 89.27 kB / 382.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.503e-05/0.01001, allocations: 52.8 kB / 382.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.956e-05/0.01003, allocations: 37.39 kB / 382.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-06/0.01003, allocations: 4.062 kB / 382.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.01007, allocations: 67.02 kB / 382.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.01007, allocations: 0 / 382.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001731/0.01025, allocations: 118.8 kB / 382.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.01029, allocations: 77.11 kB / 382.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.132e-05/0.01037, allocations: 169.8 kB / 383.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.01038, allocations: 25.7 kB / 383.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.01042, allocations: 126.9 kB / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.378e-05/0.01043, allocations: 4.25 kB / 383.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.01046, allocations: 19.38 kB / 383.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.0106, allocations: 492.1 kB / 383.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.782e-05/0.01061, allocations: 25.7 kB / 383.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.925e-05/0.01063, allocations: 37.69 kB / 383.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.956e-05/0.01067, allocations: 63.03 kB / 383.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.01067, allocations: 4 kB / 383.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.66e-05/0.01075, allocations: 85.11 kB / 384 MB, free: 12.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.01078, allocations: 33.69 kB / 384 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.01078, allocations: 96 / 384 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.0108, allocations: 4 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.0108, allocations: 0 / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.0108, allocations: 3.938 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.01082, allocations: 8 kB / 384 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.01082, allocations: 0 / 384 MB, free: 12.83 MB / 362.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 9.113e-05/0.01092, allocations: 186.3 kB / 384.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.505e-06/0.01092, allocations: 3.953 kB / 384.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.46e-05/0.01094, allocations: 3.156 kB / 384.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.01094, allocations: 3.938 kB / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.01094, allocations: 0 / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.01095, allocations: 11.92 kB / 384.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.094e-05/0.01102, allocations: 97.27 kB / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.01102, allocations: 0 / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.01102, allocations: 0 / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.01102, allocations: 0 / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.01103, allocations: 4 kB / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.01103, allocations: 0 / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01103, allocations: 0 / 384.3 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.335e-05/0.01113, allocations: 127.8 kB / 384.4 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-06/0.01113, allocations: 4 kB / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.177e-06/0.01114, allocations: 4.031 kB / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.819e-06/0.01115, allocations: 0 / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-06/0.01115, allocations: 0 / 384.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.01116, allocations: 11.94 kB / 384.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.286e-05/0.01119, allocations: 123.2 kB / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01119, allocations: 0 / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00018/0.01137, allocations: 67.73 kB / 384.6 MB, free: 12.12 MB / 362.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.000554/0.01192, allocations: 365.8 kB / 385 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.611e-05/0.01202, allocations: 122.5 kB / 385.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01202, allocations: 0 / 385.1 MB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.159e-05/0.01205, allocations: 92.78 kB / 385.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.407e-05/0.01215, allocations: 4 kB / 385.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000147/0.01229, allocations: 124.1 kB / 385.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.646e-05/0.01232, allocations: 55.34 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.691e-06/0.01233, allocations: 4 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.01236, allocations: 70.2 kB / 385.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01236, allocations: 0 / 385.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of Templates: time 0.003173/0.01554, allocations: 1.904 MB / 387.4 MB, free: 9.363 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.3496764581650496]