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.00207/0.002071, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00215/0.00215, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 75.88 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3821, allocations: 62.45 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00159/0.3838, allocations: 483.4 kB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.386, allocations: 1.266 MB / 0.5327 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.874e-05/0.386, allocations: 1.781 kB / 0.5327 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.386, allocations: 0 / 0.5327 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002454/0.3863, allocations: 9.781 kB / 0.5327 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.001277/0.3876, allocations: 250.6 kB / 0.5329 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.609e-05/0.3876, allocations: 6.688 kB / 0.5329 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.133e-05/0.3877, allocations: 5.359 kB / 0.5329 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.898e-05/0.3877, allocations: 2.75 kB / 0.5329 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.136e-05/0.3878, allocations: 8.109 kB / 0.5329 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.3878, allocations: 0 / 0.5329 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002814/0.3906, allocations: 0.6801 MB / 0.5336 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.3906, allocations: 5.312 kB / 0.5336 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.955e-05/0.3907, allocations: 1.375 kB / 0.5336 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.3909, allocations: 182.9 kB / 0.5338 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3909, allocations: 0 / 0.5338 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.391, allocations: 0 / 0.5338 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.391, allocations: 4 kB / 0.5338 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.0003765/0.3913, allocations: 382 kB / 0.5342 GB, free: 11.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3914, allocations: 9.594 kB / 0.5342 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.035e-05/0.3914, allocations: 1.844 kB / 0.5342 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3915, allocations: 169.5 kB / 0.5343 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.3916, allocations: 384 / 0.5343 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.3916, allocations: 1.344 kB / 0.5343 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.005e-05/0.3917, allocations: 32.14 kB / 0.5344 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.3917, allocations: 5.125 kB / 0.5344 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.3917, allocations: 0 / 0.5344 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3917, allocations: 3.938 kB / 0.5344 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.771e-05/0.3917, allocations: 10.31 kB / 0.5344 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.3919, allocations: 150.8 kB / 0.5345 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.373e-05/0.3919, allocations: 16.8 kB / 0.5345 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.58e-05/0.3919, allocations: 6.609 kB / 0.5345 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.3919, allocations: 0 / 0.5345 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/0.392, allocations: 69.36 kB / 0.5346 GB, free: 10.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.392, allocations: 1.438 kB / 0.5346 GB, free: 10.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000168/0.3922, allocations: 71.33 kB / 0.5347 GB, free: 10.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.3922, allocations: 78.61 kB / 0.5348 GB, free: 10.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.676e-05/0.3923, allocations: 96.77 kB / 0.5348 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.3923, allocations: 25.7 kB / 0.5349 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.3923, allocations: 81.77 kB / 0.5349 GB, free: 10.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.3924, allocations: 4 kB / 0.535 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.3924, allocations: 15.8 kB / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.3925, allocations: 311.9 kB / 0.5353 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.193e-05/0.3925, allocations: 1.031 kB / 0.5353 GB, free: 10.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.055e-06/0.3925, allocations: 0.9688 kB / 0.5353 GB, free: 10.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.518e-05/0.3926, allocations: 64.08 kB / 0.5353 GB, free: 9.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3926, allocations: 3.938 kB / 0.5353 GB, free: 9.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.208e-05/0.3927, allocations: 72.52 kB / 0.5354 GB, free: 9.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.3927, allocations: 30.77 kB / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.3927, allocations: 0 / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3928, allocations: 1.562 kB / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3928, allocations: 0 / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3928, allocations: 0 / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.3928, allocations: 0.75 kB / 0.5354 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.3928, allocations: 1 kB / 0.5354 GB, free: 9.824 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.38e-05/0.3929, allocations: 141.9 kB / 0.5356 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.153e-05/0.3929, allocations: 12.83 kB / 0.5356 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.859e-06/0.3929, allocations: 4.281 kB / 0.5356 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.3929, allocations: 0 / 0.5356 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3929, allocations: 1.438 kB / 0.5356 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.3929, allocations: 0 / 0.5356 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.718e-05/0.393, allocations: 148.1 kB / 0.5357 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.393, allocations: 0 / 0.5357 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.356e-05/0.3931, allocations: 7.938 kB / 0.5357 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3931, allocations: 5.031 kB / 0.5357 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.15e-06/0.3931, allocations: 0 / 0.5357 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3931, allocations: 1 kB / 0.5357 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3931, allocations: 7.938 kB / 0.5357 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.078e-05/0.3932, allocations: 95 kB / 0.5358 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.996e-05/0.3932, allocations: 86.08 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3932, allocations: 1.156 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-06/0.3933, allocations: 1.094 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.3933, allocations: 0 / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.3933, allocations: 1.375 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.85e-05/0.3933, allocations: 84.88 kB / 0.536 GB, free: 9.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3933, allocations: 0 / 0.536 GB, free: 9.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.3936, allocations: 60.92 kB / 0.5361 GB, free: 9.145 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.0006502/0.3943, allocations: 334.2 kB / 0.5364 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.055e-05/0.3944, allocations: 65.02 kB / 0.5364 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3944, allocations: 5.281 kB / 0.5364 GB, free: 8.875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.21e-05/0.3944, allocations: 54.94 kB / 0.5365 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.3946, allocations: 1.094 kB / 0.5365 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002068/0.3948, allocations: 93.61 kB / 0.5366 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.3951, allocations: 0.6759 MB / 0.5373 GB, free: 8.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.3951, allocations: 3.938 kB / 0.5373 GB, free: 8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3951, allocations: 8.531 kB / 0.5373 GB, free: 7.992 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3951, allocations: 0 / 0.5373 GB, free: 7.992 MB / 398.1 MB Notification: Performance of Templates: time 0.004353/0.3994, allocations: 1.587 MB / 0.5388 GB, free: 7.156 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches