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.002174/0.002174, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.00264/0.00264, allocations: 156.9 kB / 24.27 MB, free: 172 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 1.563/1.563, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.3531/0.3531, allocations: 34.25 MB / 295.2 MB, free: 0.6641 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.603e-06/1.603e-06, allocations: 0 / 377.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.904e-05, allocations: 8.781 kB / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001467/0.001496, allocations: 0.4932 MB / 377.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.003664, allocations: 1.115 MB / 378.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.839e-05/0.003682, allocations: 0 / 378.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.003694, allocations: 0 / 378.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.989e-06/0.003699, allocations: 0 / 378.8 MB, free: 1.316 MB / 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.002211/0.00591, allocations: 0.7565 MB / 379.6 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.941e-05/0.005949, allocations: 3.984 kB / 379.6 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.167e-05/0.005981, allocations: 11.97 kB / 379.6 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.127e-05/0.006002, allocations: 0 / 379.6 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.481e-05/0.006017, allocations: 0 / 379.6 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.521e-06/0.006022, allocations: 0 / 379.6 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0035/0.009523, allocations: 2.463 MB / 382 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.067e-06/0.009532, allocations: 0 / 382 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.985e-05/0.009561, allocations: 4 kB / 382 MB, free: 14.08 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000572/0.01013, allocations: 375.3 kB / 382.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.01014, allocations: 0 / 382.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.01014, allocations: 0 / 382.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.01014, allocations: 0 / 382.4 MB, free: 13.71 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.0005071/0.01065, allocations: 311.5 kB / 382.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.01069, allocations: 12.03 kB / 382.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.015e-05/0.01075, allocations: 0 / 382.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.01087, allocations: 101.2 kB / 382.8 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.01088, allocations: 4 kB / 382.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.01089, allocations: 4 kB / 382.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.01102, allocations: 51.41 kB / 382.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.01103, allocations: 0 / 382.9 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.01104, allocations: 7.938 kB / 382.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.01105, allocations: 0 / 382.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.958e-05/0.0111, allocations: 41.62 kB / 382.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.01124, allocations: 97.33 kB / 383 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.042e-05/0.01131, allocations: 40.28 kB / 383.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.819e-05/0.01134, allocations: 34.66 kB / 383.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.01135, allocations: 0 / 383.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.558e-05/0.01142, allocations: 56.27 kB / 383.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.72e-07/0.01142, allocations: 0 / 383.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002739/0.01169, allocations: 126.7 kB / 383.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/0.01177, allocations: 81.11 kB / 383.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.01184, allocations: 89.86 kB / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.01186, allocations: 29.83 kB / 383.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.01191, allocations: 80.14 kB / 383.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.01193, allocations: 0 / 383.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-05/0.01197, allocations: 21.7 kB / 383.6 MB, free: 12.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.01216, allocations: 310.8 kB / 383.9 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.717e-05/0.01219, allocations: 25.7 kB / 383.9 MB, free: 11.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.586e-05/0.01221, allocations: 29.7 kB / 383.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.276e-05/0.01228, allocations: 60.27 kB / 384 MB, free: 11.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01229, allocations: 4 kB / 384 MB, free: 11.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001245/0.01241, allocations: 93.09 kB / 384.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.01246, allocations: 33.7 kB / 384.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.01246, allocations: 0 / 384.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.01248, allocations: 0 / 384.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.526e-06/0.01249, allocations: 7.875 kB / 384.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.01249, allocations: 0 / 384.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.621e-05/0.01251, allocations: 0 / 384.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.01252, allocations: 4 kB / 384.1 MB, free: 11.71 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 0.0001254/0.01264, allocations: 135.5 kB / 384.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.01266, allocations: 11.95 kB / 384.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-06/0.01267, allocations: 7.031 kB / 384.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.01267, allocations: 0 / 384.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.01268, allocations: 3.938 kB / 384.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.01268, allocations: 0 / 384.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.459e-05/0.01277, allocations: 97.33 kB / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.01277, allocations: 0 / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.01277, allocations: 0 / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.01277, allocations: 0 / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.986e-06/0.01278, allocations: 3.984 kB / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.01278, allocations: 0 / 384.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.01279, allocations: 3.938 kB / 384.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.01296, allocations: 124.5 kB / 384.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-06/0.01297, allocations: 7.984 kB / 384.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.01298, allocations: 4 kB / 384.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.01299, allocations: 0 / 384.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.01301, allocations: 3.938 kB / 384.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.01301, allocations: 4 kB / 384.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.527e-05/0.01305, allocations: 75.28 kB / 384.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01305, allocations: 0 / 384.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003357/0.01339, allocations: 51.8 kB / 384.6 MB, free: 11.12 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.001775/0.01516, allocations: 0.5627 MB / 385.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001425/0.01531, allocations: 114.8 kB / 385.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01531, allocations: 0 / 385.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.01544, allocations: 85.09 kB / 385.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.01558, allocations: 4.125 kB / 385.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002409/0.01582, allocations: 115.9 kB / 385.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.623e-05/0.01588, allocations: 55.36 kB / 385.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.01588, allocations: 0 / 385.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.0159, allocations: 8.5 kB / 385.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.0159, allocations: 0 / 385.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of Templates: time 0.005869/0.02177, allocations: 2.203 MB / 387.8 MB, free: 7.926 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.839990900014527]