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.001395/0.001395, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.206/0.206, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3878, allocations: 62.45 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001621/0.3895, allocations: 485.1 kB / 0.5314 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.3914, allocations: 1.263 MB / 0.5327 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.619e-05/0.3914, allocations: 9.562 kB / 0.5327 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.185e-05/0.3915, allocations: 0 / 0.5327 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.3917, allocations: 5.562 kB / 0.5327 GB, free: 12.24 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.001046/0.3927, allocations: 249.1 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.297e-05/0.3928, allocations: 8.062 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.136e-05/0.3928, allocations: 1.375 kB / 0.5329 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.747e-05/0.3928, allocations: 5.375 kB / 0.5329 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.3929, allocations: 8.109 kB / 0.5329 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.055e-06/0.3929, allocations: 1.375 kB / 0.5329 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002999/0.3959, allocations: 0.675 MB / 0.5336 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.396, allocations: 3.938 kB / 0.5336 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.396, allocations: 5.438 kB / 0.5336 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.3963, allocations: 178.9 kB / 0.5338 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.3963, allocations: 4 kB / 0.5338 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3963, allocations: 0 / 0.5338 GB, free: 11.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.3964, allocations: 4.75 kB / 0.5338 GB, free: 11.66 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.0004231/0.3968, allocations: 385.7 kB / 0.5342 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3968, allocations: 9.094 kB / 0.5342 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.3969, allocations: 2.094 kB / 0.5342 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.397, allocations: 169.5 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.397, allocations: 384 / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.397, allocations: 1.375 kB / 0.5343 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.379e-05/0.3971, allocations: 36.05 kB / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.3972, allocations: 1.188 kB / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.3972, allocations: 3.938 kB / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.3972, allocations: 0 / 0.5344 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.058e-05/0.3972, allocations: 6.125 kB / 0.5344 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001494/0.3974, allocations: 151.9 kB / 0.5345 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.421e-05/0.3974, allocations: 20.73 kB / 0.5345 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.937e-05/0.3974, allocations: 10.05 kB / 0.5346 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.3974, allocations: 0 / 0.5346 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.797e-05/0.3975, allocations: 61.42 kB / 0.5346 GB, free: 10.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.3975, allocations: 0 / 0.5346 GB, free: 10.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001777/0.3977, allocations: 73.05 kB / 0.5347 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.3978, allocations: 82.23 kB / 0.5348 GB, free: 10.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.278e-05/0.3978, allocations: 92.11 kB / 0.5348 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.3979, allocations: 25.95 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.033e-05/0.3979, allocations: 85.14 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.3979, allocations: 1.438 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.398, allocations: 15.77 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3981, allocations: 314.8 kB / 0.5353 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.019e-05/0.3981, allocations: 1.188 kB / 0.5353 GB, free: 9.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.254e-06/0.3981, allocations: 2.25 kB / 0.5353 GB, free: 9.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.593e-05/0.3981, allocations: 59.64 kB / 0.5353 GB, free: 9.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3982, allocations: 4.062 kB / 0.5353 GB, free: 9.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.237e-05/0.3983, allocations: 75.42 kB / 0.5354 GB, free: 9.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.3983, allocations: 31.48 kB / 0.5354 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3983, allocations: 0 / 0.5354 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.3983, allocations: 1.156 kB / 0.5354 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.3983, allocations: 0 / 0.5354 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3984, allocations: 0 / 0.5354 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.3984, allocations: 1.094 kB / 0.5354 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-06/0.3984, allocations: 1.062 kB / 0.5354 GB, free: 9.789 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.95e-05/0.3985, allocations: 145.8 kB / 0.5356 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.3985, allocations: 5.031 kB / 0.5356 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.024e-05/0.3985, allocations: 4.375 kB / 0.5356 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3985, allocations: 0 / 0.5356 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3985, allocations: 3.938 kB / 0.5356 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3985, allocations: 1.125 kB / 0.5356 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.919e-05/0.3986, allocations: 147.7 kB / 0.5357 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3987, allocations: 3.938 kB / 0.5357 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.3987, allocations: 3.938 kB / 0.5357 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3987, allocations: 1.188 kB / 0.5357 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.3987, allocations: 9 kB / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3987, allocations: 0 / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3987, allocations: 3.984 kB / 0.5358 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.3988, allocations: 95.27 kB / 0.5358 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.3989, allocations: 82.2 kB / 0.5359 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.3989, allocations: 1.094 kB / 0.5359 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.3989, allocations: 1.125 kB / 0.5359 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.3989, allocations: 4.031 kB / 0.5359 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.3989, allocations: 5.062 kB / 0.5359 GB, free: 9.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.399, allocations: 77.62 kB / 0.536 GB, free: 9.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.399, allocations: 0 / 0.536 GB, free: 9.129 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003498/0.3994, allocations: 59.61 kB / 0.5361 GB, free: 9.113 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.0007188/0.4001, allocations: 337.1 kB / 0.5364 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.4002, allocations: 64.64 kB / 0.5364 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.4002, allocations: 1.438 kB / 0.5364 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.008e-05/0.4003, allocations: 65.62 kB / 0.5365 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.4004, allocations: 2.312 kB / 0.5365 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002147/0.4006, allocations: 86.14 kB / 0.5366 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.4009, allocations: 0.6742 MB / 0.5373 GB, free: 7.969 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.142e-06/0.4009, allocations: 1.375 kB / 0.5373 GB, free: 7.969 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.414e-05/0.4009, allocations: 8.719 kB / 0.5373 GB, free: 7.961 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4009, allocations: 4.125 kB / 0.5373 GB, free: 7.957 MB / 398.1 MB Notification: Performance of Templates: time 0.005012/0.4059, allocations: 1.586 MB / 0.5388 GB, free: 7.121 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