Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 112.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001028, allocations: 207.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1933/0.1933, allocations: 46.11 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 75.88 kB / 482 MB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2853, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001572/0.2869, allocations: 497.1 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.2889, allocations: 1.267 MB / 0.5333 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.919e-05/0.289, allocations: 4 kB / 0.5333 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.188e-05/0.289, allocations: 0 / 0.5333 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.2892, allocations: 9.656 kB / 0.5334 GB, free: 12.27 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001155/0.2903, allocations: 240 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.651e-05/0.2904, allocations: 6.734 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.184e-05/0.2904, allocations: 1.375 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.83e-05/0.2905, allocations: 9.297 kB / 0.5336 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.992e-05/0.2905, allocations: 5.5 kB / 0.5336 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.414e-06/0.2905, allocations: 0 / 0.5336 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002943/0.2935, allocations: 0.6848 MB / 0.5343 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.058e-05/0.2935, allocations: 7.922 kB / 0.5343 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.969e-05/0.2935, allocations: 1.344 kB / 0.5343 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003189/0.2939, allocations: 175 kB / 0.5344 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2939, allocations: 5.125 kB / 0.5345 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2939, allocations: 0 / 0.5345 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.2939, allocations: 0 / 0.5345 GB, free: 11.7 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.0003978/0.2943, allocations: 381.5 kB / 0.5348 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2943, allocations: 9.25 kB / 0.5348 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.146e-05/0.2944, allocations: 2.125 kB / 0.5348 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.2945, allocations: 165.5 kB / 0.535 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.2945, allocations: 1.531 kB / 0.535 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.453e-06/0.2945, allocations: 384 / 0.535 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.404e-05/0.2946, allocations: 41.42 kB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.2946, allocations: 0 / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.2946, allocations: 0 / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.2946, allocations: 0 / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.554e-05/0.2946, allocations: 6.719 kB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.2948, allocations: 150.8 kB / 0.5352 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.515e-05/0.2948, allocations: 16.86 kB / 0.5352 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.765e-05/0.2948, allocations: 9.984 kB / 0.5352 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.2949, allocations: 5.188 kB / 0.5352 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.2949, allocations: 69.34 kB / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.2949, allocations: 0 / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001569/0.2951, allocations: 68.55 kB / 0.5353 GB, free: 10.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.2951, allocations: 77.11 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.321e-05/0.2952, allocations: 97.2 kB / 0.5355 GB, free: 10.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.2952, allocations: 29.95 kB / 0.5355 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.2953, allocations: 81.23 kB / 0.5356 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.2953, allocations: 1.094 kB / 0.5356 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.2953, allocations: 12.12 kB / 0.5356 GB, free: 10.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2954, allocations: 314.8 kB / 0.5359 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.2954, allocations: 1.062 kB / 0.5359 GB, free: 10.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.01e-05/0.2954, allocations: 6.062 kB / 0.5359 GB, free: 10.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.317e-05/0.2955, allocations: 67.55 kB / 0.536 GB, free: 9.938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2955, allocations: 4 kB / 0.536 GB, free: 9.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.174e-05/0.2956, allocations: 67.45 kB / 0.5361 GB, free: 9.863 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.2956, allocations: 31.23 kB / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2956, allocations: 1.125 kB / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.2957, allocations: 0 / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.2957, allocations: 0 / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.2957, allocations: 5.031 kB / 0.5361 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.403e-05/0.2957, allocations: 0 / 0.5361 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.2957, allocations: 1.188 kB / 0.5361 GB, free: 9.828 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 8.539e-05/0.2958, allocations: 141.6 kB / 0.5362 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.2958, allocations: 9.969 kB / 0.5362 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.035e-05/0.2958, allocations: 11.05 kB / 0.5363 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.2958, allocations: 1.062 kB / 0.5363 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-06/0.2958, allocations: 0 / 0.5363 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2958, allocations: 0 / 0.5363 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.177e-05/0.2959, allocations: 143.9 kB / 0.5364 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2959, allocations: 1.062 kB / 0.5364 GB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.839e-06/0.2959, allocations: 7.922 kB / 0.5364 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.296, allocations: 5.094 kB / 0.5364 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-06/0.296, allocations: 4 kB / 0.5364 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.296, allocations: 1.188 kB / 0.5364 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.296, allocations: 3.984 kB / 0.5364 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.424e-05/0.2961, allocations: 91.27 kB / 0.5365 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.2961, allocations: 86.16 kB / 0.5366 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.2961, allocations: 1.188 kB / 0.5366 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.429e-05/0.2962, allocations: 0 / 0.5366 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.2962, allocations: 5.125 kB / 0.5366 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.2962, allocations: 1.062 kB / 0.5366 GB, free: 9.246 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.297e-05/0.2962, allocations: 80.38 kB / 0.5367 GB, free: 9.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.256e-06/0.2962, allocations: 1.188 kB / 0.5367 GB, free: 9.168 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003337/0.2966, allocations: 63.92 kB / 0.5367 GB, free: 9.148 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.0006556/0.2972, allocations: 332.4 kB / 0.537 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.061e-05/0.2974, allocations: 60.88 kB / 0.5371 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2974, allocations: 1.375 kB / 0.5371 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.779e-05/0.2974, allocations: 58.14 kB / 0.5372 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.2975, allocations: 2.75 kB / 0.5372 GB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001897/0.2977, allocations: 118.8 kB / 0.5373 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.298, allocations: 0.6755 MB / 0.5379 GB, free: 7.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.178e-05/0.298, allocations: 7.438 kB / 0.5379 GB, free: 7.973 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.298, allocations: 1.5 kB / 0.5379 GB, free: 7.973 MB / 398.1 MB Notification: Performance of Templates: time 0.0037/0.3017, allocations: 1.679 MB / 0.5396 GB, free: 7.109 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches