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.001059/0.001059, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001513/0.001513, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.042/1.042, allocations: 177.1 MB / 205 MB, free: 5.641 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.3146/0.3146, allocations: 34.26 MB / 295.7 MB, free: 0.707 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.543e-06/1.543e-06, allocations: 0 / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.576e-05/1.73e-05, allocations: 2.312 kB / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001043/0.00106, allocations: 0.4892 MB / 378.5 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.002488, allocations: 1.395 MB / 379.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.949e-05/0.002517, allocations: 0 / 379.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.334e-05/0.002541, allocations: 3.938 kB / 379.9 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.002757, allocations: 15.86 kB / 379.9 MB, free: 0.7656 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.001086/0.003843, allocations: 284.2 kB / 380.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.478e-05/0.003898, allocations: 4 kB / 380.2 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.962e-05/0.003927, allocations: 0 / 380.2 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.088e-05/0.003958, allocations: 3.938 kB / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.801e-05/0.003996, allocations: 4 kB / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.827e-06/0.004005, allocations: 4 kB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.006175, allocations: 0.9918 MB / 381.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-06/0.006184, allocations: 0 / 381.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.005e-05/0.006204, allocations: 7.938 kB / 381.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.006468, allocations: 211.5 kB / 381.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.006471, allocations: 0 / 381.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.006471, allocations: 0 / 381.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.006475, allocations: 0 / 381.4 MB, free: 15.53 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.0003779/0.006853, allocations: 417.6 kB / 381.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.006896, allocations: 8.031 kB / 381.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.006946, allocations: 9.172 kB / 381.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.007056, allocations: 108.6 kB / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.00707, allocations: 384 / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.00708, allocations: 384 / 381.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.007193, allocations: 59.97 kB / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.007204, allocations: 4.172 kB / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.007214, allocations: 4.125 kB / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.007223, allocations: 0 / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.913e-05/0.007242, allocations: 33.69 kB / 382 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001007/0.007343, allocations: 108.6 kB / 382.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.338e-05/0.007396, allocations: 56.73 kB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.172e-05/0.007418, allocations: 33.39 kB / 382.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-06/0.007423, allocations: 4.062 kB / 382.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.00746, allocations: 59.09 kB / 382.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.007461, allocations: 4 kB / 382.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001878/0.007649, allocations: 118.8 kB / 382.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.007693, allocations: 88.98 kB / 382.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.413e-05/0.007768, allocations: 153.9 kB / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.007778, allocations: 33.7 kB / 382.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.24e-05/0.00781, allocations: 126.9 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.007825, allocations: 0 / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.349e-05/0.007849, allocations: 19.38 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.007961, allocations: 492.1 kB / 383.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.796e-05/0.007979, allocations: 29.95 kB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.399e-05/0.007993, allocations: 33.64 kB / 383.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.825e-05/0.008041, allocations: 67.08 kB / 383.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.008043, allocations: 4 kB / 383.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.895e-05/0.008102, allocations: 89.05 kB / 383.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.008129, allocations: 29.7 kB / 383.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.008136, allocations: 3.984 kB / 383.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.00815, allocations: 0 / 383.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.843e-06/0.008156, allocations: 7.938 kB / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.008162, allocations: 4.094 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.062e-05/0.008172, allocations: 4 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-06/0.008178, allocations: 0 / 383.6 MB, free: 13.05 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 7.618e-05/0.008255, allocations: 186.3 kB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-06/0.008259, allocations: 0 / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.446e-06/0.008267, allocations: 3.156 kB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.008269, allocations: 0 / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.008273, allocations: 3.938 kB / 383.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.008277, allocations: 4 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.883e-05/0.008346, allocations: 112.6 kB / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.91e-07/0.008346, allocations: 0 / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.008347, allocations: 4 kB / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.12e-07/0.008347, allocations: 0 / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.008354, allocations: 4 kB / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.008355, allocations: 0 / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.008355, allocations: 0 / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.161e-05/0.008427, allocations: 135.7 kB / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-06/0.008431, allocations: 4 kB / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.07e-05/0.008442, allocations: 0 / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.178e-06/0.008446, allocations: 0 / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.008458, allocations: 3.938 kB / 384 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.00846, allocations: 12.02 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.757e-05/0.008488, allocations: 119.2 kB / 384.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008488, allocations: 0 / 384.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001785/0.008666, allocations: 67.8 kB / 384.2 MB, free: 12.32 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.0005854/0.009252, allocations: 371 kB / 384.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.228e-05/0.009344, allocations: 118.5 kB / 384.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.009345, allocations: 0 / 384.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.009375, allocations: 100.8 kB / 384.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.034e-05/0.009466, allocations: 4.062 kB / 384.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001839/0.009649, allocations: 128.1 kB / 384.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.719e-05/0.009687, allocations: 59.34 kB / 385 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.089e-06/0.009692, allocations: 0 / 385 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.298e-05/0.009705, allocations: 8.5 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.009705, allocations: 0 / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of Templates: time 0.003838/0.01354, allocations: 1.887 MB / 386.9 MB, free: 9.637 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.187222187872976]