Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001982/0.001983, allocations: 116.1 kB / 19.13 MB, free: 3.965 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002395/0.002395, allocations: 208.9 kB / 22.08 MB, free: 1.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 252.3 MB, free: 72 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2358/0.2358, allocations: 46.17 MB / 351.8 MB, free: 14.37 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002286/0.002286, allocations: 77.8 kB / 490.8 MB, free: 28.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1238, allocations: 62.44 MB / 0.5403 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001554/0.1255, allocations: 494.6 kB / 0.5408 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000651/0.1261, allocations: 251.7 kB / 0.541 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.367e-05/0.1262, allocations: 3.938 kB / 0.541 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.1262, allocations: 0 / 0.541 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.1262, allocations: 0 / 0.541 GB, free: 3.535 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.1265, allocations: 51.77 kB / 0.5411 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.426e-05/0.1266, allocations: 4 kB / 0.5411 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.757e-05/0.1266, allocations: 3.984 kB / 0.5411 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.345e-05/0.1267, allocations: 0 / 0.5411 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.173e-05/0.1267, allocations: 7.984 kB / 0.5411 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.375e-06/0.1267, allocations: 3.938 kB / 0.5411 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.1269, allocations: 67.95 kB / 0.5412 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.1269, allocations: 0 / 0.5412 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.1269, allocations: 0 / 0.5412 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.127, allocations: 55.8 kB / 0.5412 GB, free: 3.344 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1271, allocations: 4 kB / 0.5412 GB, free: 3.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1271, allocations: 0 / 0.5412 GB, free: 3.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.1271, allocations: 4 kB / 0.5412 GB, free: 3.336 MB / 398.1 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.0003823/0.1275, allocations: 353.1 kB / 0.5416 GB, free: 2.934 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1275, allocations: 12.03 kB / 0.5416 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.1276, allocations: 0.9375 kB / 0.5416 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.1277, allocations: 164.4 kB / 0.5417 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1277, allocations: 384 / 0.5417 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.273e-06/0.1277, allocations: 4.375 kB / 0.5417 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.24e-05/0.1278, allocations: 30.27 kB / 0.5418 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.1278, allocations: 192 / 0.5418 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.1278, allocations: 3.938 kB / 0.5418 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.1279, allocations: 4 kB / 0.5418 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.958e-05/0.1279, allocations: 3.938 kB / 0.5418 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.128, allocations: 145.7 kB / 0.5419 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.836e-05/0.1281, allocations: 22.59 kB / 0.5419 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.328e-05/0.1281, allocations: 4.859 kB / 0.5419 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.998e-06/0.1281, allocations: 3.984 kB / 0.5419 GB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.1282, allocations: 60.27 kB / 0.542 GB, free: 2.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1282, allocations: 64 / 0.542 GB, free: 2.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001676/0.1283, allocations: 75.27 kB / 0.5421 GB, free: 2.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.1284, allocations: 81.11 kB / 0.5422 GB, free: 2.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.244e-05/0.1285, allocations: 93.81 kB / 0.5422 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.1285, allocations: 25.7 kB / 0.5423 GB, free: 2.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.1285, allocations: 80.14 kB / 0.5423 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.1286, allocations: 3.938 kB / 0.5423 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.1286, allocations: 17.72 kB / 0.5424 GB, free: 1.938 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1287, allocations: 310.8 kB / 0.5427 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-06/0.1288, allocations: 4.125 kB / 0.5427 GB, free: 1.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.1288, allocations: 0 / 0.5427 GB, free: 1.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.693e-05/0.1288, allocations: 64.25 kB / 0.5427 GB, free: 1.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1288, allocations: 0 / 0.5427 GB, free: 1.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.62e-05/0.1289, allocations: 67.34 kB / 0.5428 GB, free: 1.465 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.129, allocations: 29.7 kB / 0.5428 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.129, allocations: 0 / 0.5428 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.129, allocations: 7.938 kB / 0.5428 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.129, allocations: 4.094 kB / 0.5428 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.129, allocations: 3.938 kB / 0.5428 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.557e-05/0.129, allocations: 0 / 0.5428 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.1291, allocations: 0 / 0.5428 GB, free: 1.414 MB / 398.1 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.564e-05/0.1292, allocations: 139.5 kB / 0.543 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-06/0.1292, allocations: 0 / 0.543 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-06/0.1292, allocations: 7.062 kB / 0.543 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-06/0.1292, allocations: 0 / 0.543 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1292, allocations: 0 / 0.543 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.1292, allocations: 4 kB / 0.543 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.1293, allocations: 149.7 kB / 0.5431 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1293, allocations: 4 kB / 0.5431 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1293, allocations: 0 / 0.5431 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1293, allocations: 0 / 0.5431 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1293, allocations: 7.938 kB / 0.5431 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1294, allocations: 0 / 0.5431 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.1294, allocations: 4 kB / 0.5431 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.1295, allocations: 94.77 kB / 0.5432 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.284e-05/0.1295, allocations: 81.05 kB / 0.5433 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.1295, allocations: 7.938 kB / 0.5433 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-06/0.1296, allocations: 0 / 0.5433 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-06/0.1296, allocations: 0 / 0.5433 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1296, allocations: 0 / 0.5433 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.144e-05/0.1296, allocations: 75.28 kB / 0.5434 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.104e-06/0.1296, allocations: 0 / 0.5434 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1299, allocations: 27.86 kB / 0.5434 GB, free: 0.7188 MB / 398.1 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.0006651/0.1305, allocations: 275.3 kB / 0.5437 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.492e-05/0.1306, allocations: 59.34 kB / 0.5437 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1306, allocations: 0 / 0.5437 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.592e-05/0.1307, allocations: 55.41 kB / 0.5438 GB, free: 368 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001168/0.1308, allocations: 4 kB / 0.5438 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001804/0.131, allocations: 110.8 kB / 0.5439 GB, free: 220 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.1313, allocations: 0.6729 MB / 0.5445 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.002e-05/0.1313, allocations: 7.438 kB / 0.5446 GB, free: 15.51 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1313, allocations: 4.125 kB / 0.5446 GB, free: 15.5 MB / 414.1 MB Notification: Performance of Templates: time 0.002523/0.1339, allocations: 0.9559 MB / 0.5455 GB, free: 14.55 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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: 7.372111991979182]