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.0009556/0.0009556, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001576/0.001576, allocations: 170 kB / 24.82 MB, free: 9.254 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 1.018/1.018, allocations: 177 MB / 205.1 MB, free: 5.477 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.2711/0.2711, allocations: 34.86 MB / 296.6 MB, free: 0.5117 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.663e-06/1.663e-06, allocations: 0 / 379.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.772e-05/1.939e-05, allocations: 3.578 kB / 379.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001572/0.001592, allocations: 0.507 MB / 379.7 MB, free: 1.359 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.00342, allocations: 1.123 MB / 380.8 MB, free: 232 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.444e-05/0.003445, allocations: 4 kB / 380.8 MB, free: 228 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.599e-05/0.003461, allocations: 0 / 380.8 MB, free: 228 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.673e-06/0.003467, allocations: 0 / 380.8 MB, free: 228 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.001834/0.005301, allocations: 0.7462 MB / 381.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.108e-05/0.005342, allocations: 0 / 381.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.308e-05/0.005375, allocations: 4 kB / 381.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.824e-05/0.005404, allocations: 0 / 381.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.619e-05/0.00542, allocations: 0 / 381.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.073e-06/0.005427, allocations: 4 kB / 381.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003023/0.00845, allocations: 2.545 MB / 384.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.008459, allocations: 0 / 384.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.393e-05/0.008473, allocations: 0 / 384.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004606/0.008933, allocations: 383.2 kB / 384.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.008935, allocations: 0 / 384.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.008936, allocations: 0 / 384.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.00894, allocations: 0 / 384.5 MB, free: 12.55 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.0003894/0.009329, allocations: 405.5 kB / 384.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.009377, allocations: 8.031 kB / 384.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.067e-05/0.009407, allocations: 4 kB / 384.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.637e-05/0.009484, allocations: 116 kB / 385 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.009499, allocations: 3.984 kB / 385 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-06/0.009506, allocations: 0 / 385 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.696e-05/0.009593, allocations: 55.41 kB / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.009602, allocations: 3.938 kB / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.009609, allocations: 3.938 kB / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.009616, allocations: 0 / 385.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.46e-05/0.00964, allocations: 33.64 kB / 385.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001016/0.009742, allocations: 97.25 kB / 385.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.423e-05/0.009796, allocations: 56.8 kB / 385.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.108e-05/0.009817, allocations: 33.39 kB / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-06/0.009821, allocations: 0 / 385.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.009869, allocations: 63.16 kB / 385.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.00987, allocations: 0 / 385.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001829/0.01005, allocations: 122.7 kB / 385.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.01009, allocations: 81.05 kB / 385.6 MB, free: 11.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.309e-05/0.01014, allocations: 142.2 kB / 385.7 MB, free: 11.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.01015, allocations: 25.7 kB / 385.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.01019, allocations: 126.9 kB / 385.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.0102, allocations: 4.469 kB / 385.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/0.01023, allocations: 23.36 kB / 385.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.01036, allocations: 492.1 kB / 386.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.967e-05/0.01038, allocations: 33.69 kB / 386.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.417e-05/0.01039, allocations: 25.7 kB / 386.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.734e-05/0.01044, allocations: 63.09 kB / 386.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.01044, allocations: 0 / 386.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.314e-05/0.01053, allocations: 101 kB / 386.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.01055, allocations: 32.2 kB / 386.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.01056, allocations: 4.094 kB / 386.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.01057, allocations: 0 / 386.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.01057, allocations: 0 / 386.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.01058, allocations: 3.938 kB / 386.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.303e-05/0.01059, allocations: 8 kB / 386.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-06/0.01059, allocations: 0 / 386.6 MB, free: 10.13 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 9.589e-05/0.01069, allocations: 178.3 kB / 386.8 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-06/0.0107, allocations: 4 kB / 386.8 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.133e-05/0.01071, allocations: 3 kB / 386.8 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.01071, allocations: 3.984 kB / 386.8 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.01071, allocations: 4 kB / 386.8 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.01072, allocations: 3.938 kB / 386.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.049e-05/0.01078, allocations: 97.2 kB / 386.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.01078, allocations: 0 / 386.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.01078, allocations: 0 / 386.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.01078, allocations: 0 / 386.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.01078, allocations: 0 / 386.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.01078, allocations: 0 / 386.9 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.01079, allocations: 4 kB / 386.9 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.773e-05/0.01087, allocations: 135.7 kB / 387.1 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-06/0.01088, allocations: 0 / 387.1 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.01089, allocations: 4.031 kB / 387.1 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.394e-06/0.0109, allocations: 0 / 387.1 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-06/0.0109, allocations: 4 kB / 387.1 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/0.01091, allocations: 3.984 kB / 387.1 MB, free: 9.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.434e-05/0.01098, allocations: 123.2 kB / 387.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01098, allocations: 0 / 387.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003054/0.01129, allocations: 47.81 kB / 387.2 MB, free: 9.453 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.001435/0.01272, allocations: 0.5733 MB / 387.8 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.01284, allocations: 122.4 kB / 387.9 MB, free: 8.785 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01284, allocations: 4 kB / 387.9 MB, free: 8.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.106e-05/0.01288, allocations: 88.78 kB / 388 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.01301, allocations: 8.062 kB / 388 MB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002376/0.01325, allocations: 121.6 kB / 388.1 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.859e-05/0.01327, allocations: 51.36 kB / 388.2 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.072e-06/0.01328, allocations: 0 / 388.2 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.113e-05/0.01332, allocations: 74.2 kB / 388.3 MB, free: 8.363 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01332, allocations: 0 / 388.3 MB, free: 8.363 MB / 362.7 MB Notification: Performance of Templates: time 0.004585/0.01791, allocations: 2.449 MB / 390.7 MB, free: 5.91 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.1322999326512218]