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.001163/0.001163, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2421/0.2421, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 71.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3806, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.001566/0.3822, allocations: 498.5 kB / 0.5314 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.3838, allocations: 0.7654 MB / 0.5322 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.562e-05/0.3839, allocations: 0 / 0.5322 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.3839, allocations: 2.062 kB / 0.5322 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.518e-06/0.3839, allocations: 0 / 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.002173/0.3861, allocations: 0.6596 MB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.569e-05/0.3861, allocations: 1.375 kB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.51e-05/0.3862, allocations: 0 / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.125e-05/0.3862, allocations: 1.375 kB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.112e-05/0.3863, allocations: 0 / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-06/0.3863, allocations: 1.375 kB / 0.5328 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008066/0.3871, allocations: 398.8 kB / 0.5332 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.656e-06/0.3871, allocations: 4 kB / 0.5332 GB, free: 12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.381e-05/0.3871, allocations: 1.375 kB / 0.5332 GB, free: 12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005044/0.3876, allocations: 352.1 kB / 0.5336 GB, free: 11.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3877, allocations: 1.375 kB / 0.5336 GB, free: 11.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3877, allocations: 0 / 0.5336 GB, free: 11.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3877, allocations: 3.938 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.0004669/0.3881, allocations: 393.2 kB / 0.5339 GB, free: 11.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3882, allocations: 9.625 kB / 0.534 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.3882, allocations: 0.9375 kB / 0.534 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.3884, allocations: 164.4 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.3884, allocations: 1.75 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.3884, allocations: 384 / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.3885, allocations: 32.88 kB / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3885, allocations: 192 / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.3885, allocations: 5.281 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3885, allocations: 0 / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.797e-05/0.3886, allocations: 5.328 kB / 0.5342 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.3887, allocations: 151 kB / 0.5343 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.623e-05/0.3888, allocations: 19.89 kB / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.55e-05/0.3888, allocations: 10.11 kB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.3888, allocations: 1.375 kB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.3888, allocations: 61.56 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.3888, allocations: 0 / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001847/0.389, allocations: 69.69 kB / 0.5345 GB, free: 10.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.3891, allocations: 82.55 kB / 0.5345 GB, free: 10.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.166e-05/0.3891, allocations: 93.81 kB / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.3892, allocations: 27.08 kB / 0.5346 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.678e-05/0.3892, allocations: 84.12 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.3892, allocations: 1.469 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.3893, allocations: 11.28 kB / 0.5347 GB, free: 10.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.3894, allocations: 314.8 kB / 0.535 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.03e-05/0.3894, allocations: 1.469 kB / 0.535 GB, free: 10.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-06/0.3894, allocations: 5.375 kB / 0.535 GB, free: 10.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.654e-05/0.3895, allocations: 59.39 kB / 0.5351 GB, free: 10.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3895, allocations: 0 / 0.5351 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.169e-05/0.3896, allocations: 66.05 kB / 0.5352 GB, free: 9.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.3896, allocations: 33.08 kB / 0.5352 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.3896, allocations: 0 / 0.5352 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3896, allocations: 5.062 kB / 0.5352 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.3896, allocations: 0 / 0.5352 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3897, allocations: 1.219 kB / 0.5352 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.246e-05/0.3897, allocations: 4.094 kB / 0.5352 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.3897, allocations: 4.906 kB / 0.5352 GB, free: 9.91 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.354e-05/0.3898, allocations: 142 kB / 0.5353 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-06/0.3898, allocations: 1.125 kB / 0.5353 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.013e-05/0.3898, allocations: 7.062 kB / 0.5354 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3898, allocations: 1.344 kB / 0.5354 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.3898, allocations: 7.938 kB / 0.5354 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3899, allocations: 0 / 0.5354 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.39, allocations: 142.8 kB / 0.5355 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.39, allocations: 5.125 kB / 0.5355 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.844e-06/0.39, allocations: 3.984 kB / 0.5355 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.39, allocations: 1.375 kB / 0.5355 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.39, allocations: 3.938 kB / 0.5355 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.39, allocations: 0 / 0.5355 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.39, allocations: 5.656 kB / 0.5355 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.3902, allocations: 88.59 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.906e-05/0.3902, allocations: 81.94 kB / 0.5357 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.3902, allocations: 9.031 kB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.829e-06/0.3902, allocations: 1.375 kB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.3903, allocations: 0 / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.3903, allocations: 5.312 kB / 0.5357 GB, free: 9.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.802e-05/0.3903, allocations: 75.28 kB / 0.5358 GB, free: 9.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3903, allocations: 0 / 0.5358 GB, free: 9.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004158/0.3907, allocations: 82.86 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.0006573/0.3914, allocations: 218.2 kB / 0.5361 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001419/0.3916, allocations: 61.05 kB / 0.5361 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3916, allocations: 0 / 0.5361 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.766e-05/0.3916, allocations: 62.72 kB / 0.5362 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.3918, allocations: 2.281 kB / 0.5362 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002438/0.392, allocations: 74.95 kB / 0.5362 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.3924, allocations: 0.6741 MB / 0.5369 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.087e-05/0.3924, allocations: 5.172 kB / 0.5369 GB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.3924, allocations: 11.44 kB / 0.5369 GB, free: 8.145 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3924, allocations: 1.094 kB / 0.5369 GB, free: 8.145 MB / 398.1 MB Notification: Performance of Templates: time 0.005155/0.3976, allocations: 1.916 MB / 0.5388 GB, free: 7.152 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