Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestVectors.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.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 197.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.48/1.48, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.21/0.21, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 67.89 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3775, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001687/0.3793, allocations: 0.4921 MB / 0.5315 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.3807, allocations: 0.7526 MB / 0.5322 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.349e-05/0.3808, allocations: 1.219 kB / 0.5322 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.3808, allocations: 0 / 0.5322 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.268e-06/0.3808, allocations: 3.938 kB / 0.5322 GB, free: 12.66 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.3828, allocations: 0.6575 MB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.457e-05/0.3829, allocations: 5.797 kB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.446e-05/0.3829, allocations: 0 / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.716e-05/0.383, allocations: 5.844 kB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.958e-05/0.383, allocations: 3.938 kB / 0.5329 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.383, allocations: 0 / 0.5329 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007619/0.3838, allocations: 398.2 kB / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-06/0.3838, allocations: 0 / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.245e-05/0.3838, allocations: 1.375 kB / 0.5332 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005585/0.3844, allocations: 345 kB / 0.5336 GB, free: 11.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3844, allocations: 0 / 0.5336 GB, free: 11.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3844, allocations: 0 / 0.5336 GB, free: 11.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3844, allocations: 1.375 kB / 0.5336 GB, free: 11.8 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.000426/0.3849, allocations: 388.4 kB / 0.5339 GB, free: 11.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3849, allocations: 9.625 kB / 0.5339 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.348e-05/0.3849, allocations: 6.312 kB / 0.5339 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.404e-05/0.385, allocations: 160.4 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.3851, allocations: 384 / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.878e-06/0.3851, allocations: 1.75 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.284e-05/0.3852, allocations: 33 kB / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3852, allocations: 4.125 kB / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.3852, allocations: 3.938 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3852, allocations: 4 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.824e-05/0.3852, allocations: 1.375 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.3854, allocations: 143.1 kB / 0.5343 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.602e-05/0.3855, allocations: 21.33 kB / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.845e-05/0.3855, allocations: 10.17 kB / 0.5343 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.3855, allocations: 0 / 0.5343 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.31e-05/0.3856, allocations: 65.62 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3856, allocations: 0 / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002092/0.3858, allocations: 66.16 kB / 0.5344 GB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.3859, allocations: 78.48 kB / 0.5345 GB, free: 10.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.796e-05/0.386, allocations: 93.86 kB / 0.5346 GB, free: 10.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.386, allocations: 27.08 kB / 0.5346 GB, free: 10.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.3861, allocations: 84.12 kB / 0.5347 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.3861, allocations: 0 / 0.5347 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/0.3862, allocations: 16.52 kB / 0.5347 GB, free: 10.42 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3863, allocations: 316.2 kB / 0.535 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.537e-05/0.3863, allocations: 4 kB / 0.535 GB, free: 10.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.588e-06/0.3863, allocations: 1.344 kB / 0.535 GB, free: 10.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.193e-05/0.3864, allocations: 66.86 kB / 0.5351 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3864, allocations: 1.344 kB / 0.5351 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001015/0.3865, allocations: 61.27 kB / 0.5352 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.88e-05/0.3866, allocations: 33.89 kB / 0.5352 GB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3866, allocations: 4.094 kB / 0.5352 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.3866, allocations: 5.219 kB / 0.5352 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.3866, allocations: 3.938 kB / 0.5352 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.3867, allocations: 0 / 0.5352 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.3867, allocations: 1.594 kB / 0.5352 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.3867, allocations: 0 / 0.5352 GB, free: 9.914 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 0.0001081/0.3868, allocations: 138.6 kB / 0.5353 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.328e-06/0.3868, allocations: 0 / 0.5353 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.695e-05/0.3868, allocations: 12.36 kB / 0.5353 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3869, allocations: 4 kB / 0.5353 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3869, allocations: 0 / 0.5353 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3869, allocations: 1.219 kB / 0.5354 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.387, allocations: 146.6 kB / 0.5355 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.387, allocations: 0.9688 kB / 0.5355 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.387, allocations: 0 / 0.5355 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.387, allocations: 3.984 kB / 0.5355 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.387, allocations: 8.953 kB / 0.5355 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.387, allocations: 5.094 kB / 0.5355 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3871, allocations: 3.938 kB / 0.5355 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.3872, allocations: 89.78 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.681e-05/0.3873, allocations: 85 kB / 0.5357 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.3873, allocations: 5.031 kB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.3873, allocations: 1.188 kB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.482e-05/0.3873, allocations: 1.281 kB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.3873, allocations: 0 / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.332e-05/0.3874, allocations: 75.28 kB / 0.5358 GB, free: 9.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3874, allocations: 1 kB / 0.5358 GB, free: 9.262 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000447/0.3878, allocations: 86.83 kB / 0.5358 GB, free: 9.234 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.0006727/0.3885, allocations: 222.8 kB / 0.5361 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001111/0.3886, allocations: 67.8 kB / 0.5361 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3886, allocations: 1.125 kB / 0.5361 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.157e-05/0.3887, allocations: 53.59 kB / 0.5362 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.3888, allocations: 2.375 kB / 0.5362 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/0.389, allocations: 81.25 kB / 0.5363 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.3893, allocations: 0.6738 MB / 0.5369 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.751e-06/0.3893, allocations: 0 / 0.5369 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.213e-05/0.3893, allocations: 8.5 kB / 0.5369 GB, free: 8.145 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.3893, allocations: 0 / 0.5369 GB, free: 8.145 MB / 398.1 MB Notification: Performance of Templates: time 0.006144/0.3955, allocations: 1.922 MB / 0.5388 GB, free: 7.148 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestVectors.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestVectors.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestVectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches