Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009745/0.0009745, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9726/0.9726, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2422/0.2422, allocations: 34.87 MB / 296.3 MB, free: 0.543 MB / 266.7 MB " [Timeout remaining time 180] 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.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 378.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.336e-05/1.471e-05, allocations: 2.312 kB / 378.7 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0009213/0.000936, allocations: 0.5027 MB / 379.3 MB, free: 1.605 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.002293, allocations: 1.138 MB / 380.4 MB, free: 468 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.084e-05/0.002314, allocations: 0 / 380.4 MB, free: 468 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.038e-05/0.002334, allocations: 3.938 kB / 380.4 MB, free: 464 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.00234, allocations: 0 / 380.4 MB, free: 464 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Visualizers/Colors/colorMapToSvg.mo:2:1-205:18:writable] Warning: Pure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg' contains a call to impure function 'Modelica.Utilities.Files.remove'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:663:3-677:20:writable] Warning: Pure function 'ModelicaTest.Math.colorMapToSvg' contains a call to impure function 'Modelica.Mechanics.MultiBody.Visualizers.Colors.colorMapToSvg'. Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.003864, allocations: 0.7434 MB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.402e-05/0.003908, allocations: 0 / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.853e-05/0.003937, allocations: 0 / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.492e-05/0.003962, allocations: 7.984 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.78e-05/0.003979, allocations: 4 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-06/0.003986, allocations: 0 / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001706/0.005692, allocations: 2.459 MB / 383.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.877e-06/0.005701, allocations: 4 kB / 383.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.845e-05/0.005719, allocations: 4 kB / 383.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.006047, allocations: 387.2 kB / 384 MB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.00605, allocations: 0 / 384 MB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.006051, allocations: 0 / 384 MB, free: 12.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.006055, allocations: 0 / 384 MB, free: 12.86 MB / 362.7 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.0003702/0.006425, allocations: 401.4 kB / 384.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.006473, allocations: 12.03 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.435e-05/0.006517, allocations: 0 / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.333e-05/0.00659, allocations: 116 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.006605, allocations: 0 / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.006615, allocations: 11.94 kB / 384.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.006719, allocations: 51.41 kB / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.006728, allocations: 0 / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.006742, allocations: 7.938 kB / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.006752, allocations: 0 / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.911e-05/0.006771, allocations: 25.7 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001013/0.006872, allocations: 112.6 kB / 384.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.437e-05/0.006936, allocations: 48.77 kB / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.678e-05/0.006963, allocations: 45.42 kB / 384.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.006969, allocations: 0 / 384.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.007009, allocations: 63.09 kB / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.623e-06/0.007011, allocations: 0 / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002057/0.007216, allocations: 118.7 kB / 385 MB, free: 11.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.007261, allocations: 81.11 kB / 385.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.716e-05/0.007308, allocations: 142.2 kB / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.007318, allocations: 29.7 kB / 385.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.898e-05/0.007347, allocations: 126.9 kB / 385.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.007367, allocations: 352 / 385.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.47e-05/0.007392, allocations: 19.38 kB / 385.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.007499, allocations: 496.1 kB / 385.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.711e-05/0.007516, allocations: 33.77 kB / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.126e-05/0.007527, allocations: 29.7 kB / 385.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.183e-05/0.007569, allocations: 63.09 kB / 386 MB, free: 10.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007571, allocations: 4 kB / 386 MB, free: 10.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.256e-05/0.007624, allocations: 89.05 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.007648, allocations: 37.64 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.007652, allocations: 0 / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.007664, allocations: 0 / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.851e-06/0.00767, allocations: 3.938 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.007675, allocations: 4.094 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.979e-06/0.007685, allocations: 0 / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.007691, allocations: 4 kB / 386.1 MB, free: 10.42 MB / 362.7 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 6.043e-05/0.007752, allocations: 182.2 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-06/0.007758, allocations: 7.984 kB / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.316e-06/0.007766, allocations: 7 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.007768, allocations: 3.984 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.007773, allocations: 3.938 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.007775, allocations: 0 / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.794e-05/0.007823, allocations: 108.6 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.007824, allocations: 4 kB / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.007825, allocations: 4 kB / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.91e-07/0.007825, allocations: 0 / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.007833, allocations: 0 / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.007833, allocations: 0 / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.007834, allocations: 0 / 386.4 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.003e-05/0.007904, allocations: 131.8 kB / 386.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-06/0.007907, allocations: 4 kB / 386.6 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.00792, allocations: 3.984 kB / 386.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.847e-06/0.007924, allocations: 0 / 386.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.007938, allocations: 7.875 kB / 386.6 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.00794, allocations: 8.031 kB / 386.6 MB, free: 9.871 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.588e-05/0.007966, allocations: 123.2 kB / 386.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007966, allocations: 0 / 386.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002027/0.008169, allocations: 51.8 kB / 386.8 MB, free: 9.699 MB / 362.7 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.001065/0.009233, allocations: 0.5656 MB / 387.3 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.009352, allocations: 118.5 kB / 387.4 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.009354, allocations: 0 / 387.4 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.009388, allocations: 88.8 kB / 387.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.009519, allocations: 7.984 kB / 387.5 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001788/0.009698, allocations: 125.6 kB / 387.7 MB, free: 8.766 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.822e-05/0.009726, allocations: 51.36 kB / 387.7 MB, free: 8.695 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.009732, allocations: 12.05 kB / 387.7 MB, free: 8.684 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.262e-05/0.009744, allocations: 12.5 kB / 387.7 MB, free: 8.672 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009745, allocations: 0 / 387.7 MB, free: 8.672 MB / 362.7 MB Notification: Performance of Templates: time 0.004796/0.01454, allocations: 2.419 MB / 390.1 MB, free: 6.25 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1923501626588404]