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.0009554/0.0009554, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001013/0.001013, allocations: 159.4 kB / 25.61 MB, free: 8.582 MB / 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.9926/0.9926, allocations: 177 MB / 205.9 MB, free: 4.461 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.158/0.158, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.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 2.345e-06/2.345e-06, allocations: 0 / 380 MB, free: 22.78 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.385e-05, allocations: 5.016 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0015/0.001523, allocations: 0.4919 MB / 380.5 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.003433, allocations: 1.117 MB / 381.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.121e-05/0.003465, allocations: 0 / 381.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.229e-05/0.003487, allocations: 3.938 kB / 381.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.875e-06/0.003495, allocations: 4 kB / 381.6 MB, free: 21.15 MB / 314.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.002019/0.005513, allocations: 0.7515 MB / 382.4 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.573e-05/0.005569, allocations: 0 / 382.4 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.00561, allocations: 0 / 382.4 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.839e-05/0.005639, allocations: 7.984 kB / 382.4 MB, free: 20.4 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.122e-05/0.00566, allocations: 11.92 kB / 382.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.005667, allocations: 0 / 382.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.007346, allocations: 2.502 MB / 384.9 MB, free: 17.89 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.007355, allocations: 0 / 384.9 MB, free: 17.89 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.756e-05/0.007372, allocations: 7.984 kB / 384.9 MB, free: 17.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.00768, allocations: 383.2 kB / 385.3 MB, free: 17.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.007682, allocations: 4 kB / 385.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.007683, allocations: 4 kB / 385.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.007688, allocations: 0 / 385.3 MB, free: 17.5 MB / 314.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.0002973/0.007985, allocations: 401.5 kB / 385.7 MB, free: 17.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.00802, allocations: 12.03 kB / 385.7 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.72e-05/0.008047, allocations: 0 / 385.7 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.982e-05/0.008097, allocations: 108.1 kB / 385.8 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.008109, allocations: 0 / 385.8 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-06/0.008116, allocations: 4 kB / 385.8 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.314e-05/0.008179, allocations: 55.41 kB / 385.8 MB, free: 16.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.008186, allocations: 0 / 385.8 MB, free: 16.85 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.008193, allocations: 7.938 kB / 385.8 MB, free: 16.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.008199, allocations: 7.938 kB / 385.8 MB, free: 16.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.072e-05/0.00821, allocations: 25.7 kB / 385.9 MB, free: 16.8 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.336e-05/0.008283, allocations: 93.25 kB / 386 MB, free: 16.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.384e-05/0.008317, allocations: 52.8 kB / 386 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.433e-05/0.008331, allocations: 33.39 kB / 386 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-06/0.008335, allocations: 4.062 kB / 386 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.008359, allocations: 59.09 kB / 386.1 MB, free: 16.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.008359, allocations: 0 / 386.1 MB, free: 16.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000155/0.008514, allocations: 126.8 kB / 386.2 MB, free: 16.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.008542, allocations: 85.08 kB / 386.3 MB, free: 16.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.606e-05/0.008568, allocations: 142.2 kB / 386.5 MB, free: 16.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-06/0.008574, allocations: 29.7 kB / 386.5 MB, free: 16.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.635e-05/0.00859, allocations: 130.9 kB / 386.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.008606, allocations: 3.938 kB / 386.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.008625, allocations: 15.38 kB / 386.6 MB, free: 15.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.951e-05/0.008684, allocations: 0.4884 MB / 387.1 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.295e-06/0.008692, allocations: 25.7 kB / 387.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.216e-06/0.008701, allocations: 29.64 kB / 387.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.555e-05/0.008736, allocations: 71.09 kB / 387.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.008738, allocations: 0 / 387.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.109e-05/0.008779, allocations: 93.09 kB / 387.3 MB, free: 15.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.008803, allocations: 32.05 kB / 387.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.008807, allocations: 0 / 387.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.597e-06/0.008816, allocations: 4 kB / 387.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.008817, allocations: 0 / 387.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.425e-06/0.008819, allocations: 3.938 kB / 387.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-06/0.008829, allocations: 0 / 387.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.008834, allocations: 0 / 387.4 MB, free: 15.09 MB / 314.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 4.512e-05/0.008879, allocations: 186.3 kB / 387.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-06/0.008884, allocations: 352 / 387.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.867e-06/0.008893, allocations: 6.984 kB / 387.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.008895, allocations: 4 kB / 387.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.008897, allocations: 4 kB / 387.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.0089, allocations: 3.938 kB / 387.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.551e-05/0.008936, allocations: 89.27 kB / 387.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.008936, allocations: 0 / 387.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.6e-07/0.008937, allocations: 0 / 387.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.008938, allocations: 7.938 kB / 387.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-06/0.008942, allocations: 0 / 387.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.008942, allocations: 4 kB / 387.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.008943, allocations: 0 / 387.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.207e-05/0.008995, allocations: 135.7 kB / 387.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-06/0.008998, allocations: 0 / 387.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.009009, allocations: 4 kB / 387.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.168e-06/0.009013, allocations: 0 / 387.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.098e-05/0.009024, allocations: 7.969 kB / 387.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-06/0.009025, allocations: 0 / 387.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.302e-05/0.009038, allocations: 123.2 kB / 387.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009038, allocations: 0 / 387.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002263/0.009265, allocations: 55.83 kB / 388 MB, free: 14.39 MB / 314.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.0009921/0.01026, allocations: 0.5704 MB / 388.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.01036, allocations: 130.4 kB / 388.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01036, allocations: 0 / 388.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.032e-05/0.01038, allocations: 88.8 kB / 388.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.035e-05/0.01047, allocations: 0 / 388.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001787/0.01065, allocations: 111.6 kB / 388.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.39e-05/0.01067, allocations: 59.22 kB / 388.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.01068, allocations: 0 / 388.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.867e-05/0.01071, allocations: 70.2 kB / 389 MB, free: 13.35 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01071, allocations: 0 / 389 MB, free: 13.35 MB / 314.7 MB Notification: Performance of Templates: time 0.003934/0.01464, allocations: 2.438 MB / 391.4 MB, free: 10.91 MB / 314.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.528291329741478]