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.001013/0.001013, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001038/0.001038, allocations: 165.5 kB / 24.91 MB, free: 8.77 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.9736/0.9736, allocations: 177 MB / 205.2 MB, free: 5.016 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.286/0.286, allocations: 34.86 MB / 296.6 MB, free: 472 kB / 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.613e-06/1.613e-06, allocations: 0 / 325.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.66e-05/1.821e-05, allocations: 6.312 kB / 325.9 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001111/0.001129, allocations: 0.547 MB / 326.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.002542, allocations: 1.142 MB / 327.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.823e-05/0.00256, allocations: 0 / 327.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.002574, allocations: 0 / 327.6 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.004e-06/0.002581, allocations: 0 / 327.6 MB, free: 5.469 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.001382/0.003963, allocations: 0.7315 MB / 328.4 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.138e-05/0.004005, allocations: 0.75 kB / 328.4 MB, free: 4.738 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.248e-05/0.004037, allocations: 4 kB / 328.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.323e-05/0.00406, allocations: 0 / 328.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.477e-05/0.004075, allocations: 4 kB / 328.4 MB, free: 4.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.891e-06/0.004081, allocations: 0 / 328.4 MB, free: 4.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.005815, allocations: 2.207 MB / 330.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.005823, allocations: 4 kB / 330.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.435e-05/0.005837, allocations: 0 / 330.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.00617, allocations: 383.2 kB / 330.9 MB, free: 2.145 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.073e-06/0.006172, allocations: 0 / 330.9 MB, free: 2.145 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.006172, allocations: 0 / 330.9 MB, free: 2.145 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.006176, allocations: 0 / 330.9 MB, free: 2.145 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.0002682/0.006444, allocations: 273.9 kB / 331.2 MB, free: 1.848 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.006476, allocations: 12.03 kB / 331.2 MB, free: 1.836 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.472e-05/0.0065, allocations: 0 / 331.2 MB, free: 1.836 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.156e-05/0.006562, allocations: 105.2 kB / 331.3 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.006571, allocations: 0 / 331.3 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-06/0.006576, allocations: 0 / 331.3 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.815e-05/0.006634, allocations: 59.39 kB / 331.4 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.00664, allocations: 0 / 331.4 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.521e-06/0.006646, allocations: 3.938 kB / 331.4 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.00665, allocations: 0 / 331.4 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.588e-05/0.006665, allocations: 33.64 kB / 331.4 MB, free: 1.594 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.191e-05/0.006727, allocations: 57.05 kB / 331.5 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.682e-05/0.006784, allocations: 48.31 kB / 331.5 MB, free: 1.461 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.403e-05/0.006798, allocations: 30.56 kB / 331.6 MB, free: 1.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-06/0.006801, allocations: 0 / 331.6 MB, free: 1.422 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.00684, allocations: 64.31 kB / 331.6 MB, free: 1.344 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.61e-07/0.00684, allocations: 3.938 kB / 331.6 MB, free: 1.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.587e-05/0.006936, allocations: 110.8 kB / 331.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.006982, allocations: 81.11 kB / 331.8 MB, free: 1.109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.359e-05/0.007016, allocations: 97.78 kB / 331.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.007025, allocations: 25.7 kB / 331.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.679e-05/0.007042, allocations: 84.27 kB / 332 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.007057, allocations: 5.375 kB / 332 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.007077, allocations: 17.7 kB / 332 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.007177, allocations: 310.8 kB / 332.3 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.00719, allocations: 25.7 kB / 332.4 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.053e-05/0.007201, allocations: 29.7 kB / 332.4 MB, free: 492 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.865e-05/0.007239, allocations: 60.27 kB / 332.5 MB, free: 416 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.007241, allocations: 0 / 332.5 MB, free: 416 kB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.785e-05/0.007289, allocations: 89.03 kB / 332.5 MB, free: 308 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.007314, allocations: 33.8 kB / 332.6 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.269e-06/0.007319, allocations: 0 / 332.6 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.007329, allocations: 4 kB / 332.6 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.007331, allocations: 0 / 332.6 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.035e-06/0.007334, allocations: 0 / 332.6 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.003e-05/0.007344, allocations: 3.938 kB / 332.6 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-06/0.007349, allocations: 0 / 332.6 MB, free: 260 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.604e-05/0.007405, allocations: 139.5 kB / 332.7 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-06/0.007409, allocations: 0 / 332.7 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.003e-05/0.007419, allocations: 3 kB / 332.7 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.00742, allocations: 4 kB / 332.7 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.007423, allocations: 8 kB / 332.7 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.007428, allocations: 3.938 kB / 332.7 MB, free: 84 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.856e-05/0.007466, allocations: 61.91 kB / 332.8 MB, free: 4 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.007467, allocations: 0 / 332.8 MB, free: 4 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.007467, allocations: 0 / 332.8 MB, free: 4 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.007469, allocations: 4 kB / 332.8 MB, free: 0 / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.007484, allocations: 4.047 kB / 332.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.007484, allocations: 0 / 332.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.007485, allocations: 0 / 332.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.823e-05/0.007543, allocations: 124.4 kB / 332.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-06/0.007548, allocations: 8.375 kB / 332.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-06/0.007556, allocations: 3.938 kB / 332.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-06/0.00756, allocations: 0 / 332.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-06/0.007568, allocations: 0 / 332.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.00757, allocations: 0 / 332.9 MB, free: 15.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.555e-06/0.007578, allocations: 12.89 kB / 333 MB, free: 15.81 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.007578, allocations: 0 / 333 MB, free: 15.81 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002076/0.007785, allocations: 55.67 kB / 333 MB, free: 15.76 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.001171/0.008956, allocations: 0.5967 MB / 333.6 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.247e-05/0.009038, allocations: 119.5 kB / 333.7 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.009041, allocations: 0 / 333.7 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.877e-05/0.00907, allocations: 89.95 kB / 333.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.585e-05/0.009115, allocations: 8.125 kB / 333.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001318/0.009247, allocations: 108.9 kB / 333.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.462e-05/0.009272, allocations: 51.36 kB / 334 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.571e-06/0.009277, allocations: 3.984 kB / 334 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.009302, allocations: 51.38 kB / 334 MB, free: 14.77 MB / 314.7 MB Notification: Performance of SimCode: time 3.7e-07/0.009302, allocations: 0 / 334 MB, free: 14.77 MB / 314.7 MB Notification: Performance of Templates: time 0.003762/0.01306, allocations: 2.422 MB / 336.4 MB, free: 12.35 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 -s gbode -gbm=radauIIA3 -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.941526493988931]