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.001559/0.001559, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001956/0.001956, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2761/0.2761, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 71.88 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3159, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001659/0.3176, allocations: 495.6 kB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.3196, allocations: 1.263 MB / 0.5333 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.535e-05/0.3197, allocations: 0 / 0.5333 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.312e-05/0.3197, allocations: 4 kB / 0.5333 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.3199, allocations: 10.69 kB / 0.5333 GB, free: 12.25 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.001079/0.321, allocations: 244.9 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.725e-05/0.321, allocations: 4 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.3211, allocations: 1.375 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.423e-05/0.3211, allocations: 5.047 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.649e-05/0.3212, allocations: 8.625 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.458e-06/0.3212, allocations: 1.312 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003076/0.3243, allocations: 0.6832 MB / 0.5343 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.189e-05/0.3243, allocations: 7.922 kB / 0.5343 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.364e-05/0.3243, allocations: 1.094 kB / 0.5343 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.3246, allocations: 175.3 kB / 0.5344 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3246, allocations: 0 / 0.5344 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3247, allocations: 5.312 kB / 0.5345 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.3247, allocations: 3.938 kB / 0.5345 GB, free: 11.68 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.0004239/0.3251, allocations: 385.6 kB / 0.5348 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3251, allocations: 9.625 kB / 0.5348 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.3252, allocations: 4.938 kB / 0.5348 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.3253, allocations: 161.8 kB / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.3253, allocations: 1.75 kB / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.3253, allocations: 384 / 0.535 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.621e-05/0.3254, allocations: 40.52 kB / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3254, allocations: 3.984 kB / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.3255, allocations: 1.375 kB / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3255, allocations: 0 / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.3255, allocations: 9.297 kB / 0.535 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/0.3256, allocations: 147.1 kB / 0.5352 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.441e-05/0.3257, allocations: 21.33 kB / 0.5352 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.753e-05/0.3257, allocations: 6.234 kB / 0.5352 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.385e-06/0.3257, allocations: 7.938 kB / 0.5352 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.3258, allocations: 65.56 kB / 0.5353 GB, free: 10.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3258, allocations: 0 / 0.5353 GB, free: 10.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001731/0.326, allocations: 68.92 kB / 0.5353 GB, free: 10.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.326, allocations: 82.48 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.084e-05/0.3261, allocations: 96.59 kB / 0.5355 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.3261, allocations: 25.7 kB / 0.5355 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.3262, allocations: 85.77 kB / 0.5356 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.3262, allocations: 0 / 0.5356 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-05/0.3262, allocations: 12.47 kB / 0.5356 GB, free: 10.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3263, allocations: 314.8 kB / 0.5359 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.251e-05/0.3264, allocations: 1.375 kB / 0.5359 GB, free: 9.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.532e-06/0.3264, allocations: 5.312 kB / 0.5359 GB, free: 9.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.949e-05/0.3264, allocations: 60.39 kB / 0.536 GB, free: 9.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3264, allocations: 0 / 0.536 GB, free: 9.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.999e-05/0.3265, allocations: 71.64 kB / 0.5361 GB, free: 9.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.3266, allocations: 35.2 kB / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3266, allocations: 0 / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3266, allocations: 1.375 kB / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.363e-06/0.3266, allocations: 0 / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3266, allocations: 0 / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.585e-05/0.3266, allocations: 1.375 kB / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.3266, allocations: 0 / 0.5361 GB, free: 9.797 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.987e-05/0.3267, allocations: 146.2 kB / 0.5362 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.928e-06/0.3268, allocations: 9.25 kB / 0.5363 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.827e-06/0.3268, allocations: 3.125 kB / 0.5363 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3268, allocations: 1.375 kB / 0.5363 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3268, allocations: 3.938 kB / 0.5363 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3268, allocations: 0 / 0.5363 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.248e-05/0.3269, allocations: 148.4 kB / 0.5364 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3269, allocations: 0 / 0.5364 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.396e-05/0.3269, allocations: 3.938 kB / 0.5364 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3269, allocations: 5.312 kB / 0.5364 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.3269, allocations: 1.375 kB / 0.5364 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3269, allocations: 4 kB / 0.5364 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3269, allocations: 0 / 0.5364 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.836e-05/0.327, allocations: 95.2 kB / 0.5365 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.3271, allocations: 82.42 kB / 0.5366 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.3271, allocations: 0 / 0.5366 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-06/0.3271, allocations: 1.375 kB / 0.5366 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.3271, allocations: 0 / 0.5366 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.3272, allocations: 9.406 kB / 0.5366 GB, free: 9.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.295e-05/0.3272, allocations: 80.64 kB / 0.5367 GB, free: 9.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3272, allocations: 5.312 kB / 0.5367 GB, free: 9.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.3275, allocations: 56 kB / 0.5367 GB, free: 9.121 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.0007092/0.3282, allocations: 335.7 kB / 0.5371 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001132/0.3284, allocations: 60.89 kB / 0.5371 GB, free: 8.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3284, allocations: 4.062 kB / 0.5371 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.76e-05/0.3284, allocations: 59.53 kB / 0.5372 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.3286, allocations: 1.375 kB / 0.5372 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002393/0.3288, allocations: 119.4 kB / 0.5373 GB, free: 8.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.3291, allocations: 0.6702 MB / 0.5379 GB, free: 7.949 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.3291, allocations: 8.812 kB / 0.5379 GB, free: 7.941 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3291, allocations: 0 / 0.5379 GB, free: 7.941 MB / 398.1 MB Notification: Performance of Templates: time 0.004022/0.3331, allocations: 1.684 MB / 0.5396 GB, free: 7.074 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