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.0009795/0.0009795, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.0008926/0.0008926, allocations: 165.1 kB / 24.91 MB, free: 9.184 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.9269/0.9269, allocations: 177 MB / 205.2 MB, free: 5.441 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.2525/0.2525, allocations: 34.87 MB / 296.6 MB, free: 0.5078 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.303e-06/1.303e-06, allocations: 0 / 325.9 MB, free: 7.188 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.384e-05/1.514e-05, allocations: 4 kB / 325.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001144/0.001159, allocations: 0.4933 MB / 326.4 MB, free: 6.688 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.002755, allocations: 1.13 MB / 327.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.111e-05/0.002776, allocations: 0 / 327.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.002791, allocations: 4 kB / 327.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.183e-06/0.002798, allocations: 0 / 327.5 MB, free: 5.547 MB / 298.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.001499/0.004297, allocations: 0.7678 MB / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.304e-05/0.00435, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.538e-05/0.004386, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.004411, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.769e-05/0.004429, allocations: 4 kB / 328.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.083e-06/0.004436, allocations: 0 / 328.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.0061, allocations: 2.203 MB / 330.5 MB, free: 2.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.368e-06/0.006109, allocations: 0 / 330.5 MB, free: 2.582 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.006127, allocations: 4 kB / 330.5 MB, free: 2.578 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.006492, allocations: 375.3 kB / 330.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.006494, allocations: 0 / 330.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006495, allocations: 0 / 330.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.006499, allocations: 0 / 330.9 MB, free: 2.211 MB / 298.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.0003031/0.006802, allocations: 281.8 kB / 331.1 MB, free: 1.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.006837, allocations: 8.031 kB / 331.1 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.006865, allocations: 4 kB / 331.1 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.149e-05/0.006926, allocations: 109.2 kB / 331.3 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.006935, allocations: 4 kB / 331.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.006946, allocations: 0 / 331.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.476e-05/0.00702, allocations: 55.41 kB / 331.3 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.007026, allocations: 0 / 331.3 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.007034, allocations: 3.938 kB / 331.3 MB, free: 1.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.007038, allocations: 0 / 331.3 MB, free: 1.688 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.937e-05/0.007058, allocations: 33.69 kB / 331.3 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.695e-05/0.007125, allocations: 53.05 kB / 331.4 MB, free: 1.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.444e-05/0.007189, allocations: 48.25 kB / 331.4 MB, free: 1.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.9e-05/0.007208, allocations: 30.56 kB / 331.5 MB, free: 1.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.007213, allocations: 8.062 kB / 331.5 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.007258, allocations: 56.27 kB / 331.5 MB, free: 1.402 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.82e-07/0.007258, allocations: 0 / 331.5 MB, free: 1.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0004437/0.007702, allocations: 118.8 kB / 331.7 MB, free: 1.262 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.007742, allocations: 81.05 kB / 331.7 MB, free: 1.164 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.571e-05/0.007778, allocations: 93.8 kB / 331.8 MB, free: 1.059 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.007788, allocations: 25.7 kB / 331.9 MB, free: 1.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.187e-05/0.00781, allocations: 80.14 kB / 331.9 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.007829, allocations: 1.375 kB / 331.9 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.00785, allocations: 17.83 kB / 331.9 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.007986, allocations: 318.8 kB / 332.3 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.88e-05/0.008004, allocations: 29.7 kB / 332.3 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.289e-05/0.008017, allocations: 25.7 kB / 332.3 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.334e-05/0.008061, allocations: 60.27 kB / 332.4 MB, free: 472 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.008062, allocations: 3.938 kB / 332.4 MB, free: 468 kB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.707e-05/0.008109, allocations: 85.09 kB / 332.5 MB, free: 364 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.008137, allocations: 33.7 kB / 332.5 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.008143, allocations: 3.938 kB / 332.5 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.008152, allocations: 96 / 332.5 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.506e-06/0.008156, allocations: 4 kB / 332.5 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.00816, allocations: 0 / 332.5 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.095e-05/0.008171, allocations: 3.938 kB / 332.5 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.008181, allocations: 8 kB / 332.5 MB, free: 304 kB / 298.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 5.891e-05/0.00824, allocations: 135.5 kB / 332.6 MB, free: 152 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-06/0.008245, allocations: 4 kB / 332.6 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.386e-06/0.008253, allocations: 3 kB / 332.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.008255, allocations: 0 / 332.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.008257, allocations: 0 / 332.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.00826, allocations: 3.938 kB / 332.7 MB, free: 140 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.306e-05/0.008304, allocations: 65.91 kB / 332.7 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.008305, allocations: 4 kB / 332.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.008305, allocations: 0 / 332.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.71e-07/0.008305, allocations: 0 / 332.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-06/0.00831, allocations: 0 / 332.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.2e-07/0.008311, allocations: 0 / 332.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.31e-07/0.008311, allocations: 0 / 332.7 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.008483, allocations: 124.4 kB / 332.8 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-06/0.008488, allocations: 4.328 kB / 332.8 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.0085, allocations: 3.984 kB / 332.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-06/0.008504, allocations: 4.031 kB / 332.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.113e-05/0.008516, allocations: 4 kB / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-06/0.008518, allocations: 0 / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.751e-06/0.008523, allocations: 4.859 kB / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008523, allocations: 0 / 332.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001807/0.008704, allocations: 59.73 kB / 332.9 MB, free: 15.82 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.001187/0.009891, allocations: 0.595 MB / 333.5 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.01, allocations: 119.6 kB / 333.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.01, allocations: 0 / 333.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.436e-05/0.01004, allocations: 85.97 kB / 333.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.405e-05/0.01009, allocations: 10.48 kB / 333.7 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001785/0.01027, allocations: 108.8 kB / 333.8 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.429e-05/0.01031, allocations: 55.48 kB / 333.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.01031, allocations: 4 kB / 333.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.01035, allocations: 55.36 kB / 333.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of SimCode: time 5.92e-07/0.01035, allocations: 0 / 333.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of Templates: time 0.004065/0.01441, allocations: 2.418 MB / 336.4 MB, free: 12.4 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: 2.871476479806006]