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.001746/0.001746, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 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.002272/0.002272, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 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.577/1.577, allocations: 230.3 MB / 258 MB, free: 8.211 MB / 206.1 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.2264/0.2264, allocations: 46.89 MB / 361.3 MB, free: 4.41 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002398/0.002398, allocations: 79.86 kB / 0.497 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4546/0.457, allocations: 66.04 MB / 0.5615 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002134/0.4592, allocations: 495.1 kB / 0.562 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.4614, allocations: 1.177 MB / 0.5632 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.647e-05/0.4615, allocations: 0 / 0.5632 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.4615, allocations: 0 / 0.5632 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.4615, allocations: 0 / 0.5632 GB, free: 2.938 MB / 398.1 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.002278/0.4638, allocations: 0.7527 MB / 0.5639 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.367e-05/0.4638, allocations: 8 kB / 0.5639 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.91e-05/0.4639, allocations: 0 / 0.5639 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.568e-05/0.4639, allocations: 0 / 0.5639 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.781e-05/0.4639, allocations: 0 / 0.5639 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.623e-06/0.4639, allocations: 0 / 0.5639 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003218/0.4671, allocations: 2.512 MB / 0.5664 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.309e-05/0.4671, allocations: 4 kB / 0.5664 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.325e-05/0.4671, allocations: 3.984 kB / 0.5664 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.4676, allocations: 355.4 kB / 0.5667 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4676, allocations: 0 / 0.5667 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4676, allocations: 0 / 0.5667 GB, free: 15.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.4676, allocations: 0 / 0.5667 GB, free: 15.32 MB / 414.1 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.0004888/0.4681, allocations: 311.5 kB / 0.567 GB, free: 14.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.4682, allocations: 8.031 kB / 0.567 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.042e-05/0.4682, allocations: 0 / 0.567 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.009e-05/0.4683, allocations: 105.2 kB / 0.5671 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.4683, allocations: 0 / 0.5671 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.4683, allocations: 3.938 kB / 0.5671 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.657e-05/0.4684, allocations: 33.64 kB / 0.5671 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.4684, allocations: 0 / 0.5671 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.4684, allocations: 0 / 0.5671 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4684, allocations: 3.938 kB / 0.5671 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.776e-05/0.4685, allocations: 15.92 kB / 0.5672 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.4686, allocations: 116.8 kB / 0.5673 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.894e-05/0.4687, allocations: 14.58 kB / 0.5673 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.4687, allocations: 4.859 kB / 0.5673 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.4687, allocations: 3.938 kB / 0.5673 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.378e-05/0.4687, allocations: 64.36 kB / 0.5674 GB, free: 14.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.4687, allocations: 0 / 0.5674 GB, free: 14.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002041/0.469, allocations: 75.31 kB / 0.5674 GB, free: 14.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.469, allocations: 77.11 kB / 0.5675 GB, free: 14.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.637e-05/0.4691, allocations: 93.81 kB / 0.5676 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.4691, allocations: 25.7 kB / 0.5676 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.4691, allocations: 80.14 kB / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.4691, allocations: 0 / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.4692, allocations: 17.72 kB / 0.5677 GB, free: 14.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.4693, allocations: 319 kB / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.117e-05/0.4694, allocations: 0 / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.878e-06/0.4694, allocations: 4 kB / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.173e-05/0.4694, allocations: 56.27 kB / 0.5681 GB, free: 13.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4694, allocations: 0 / 0.5681 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.968e-05/0.4695, allocations: 71.28 kB / 0.5681 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.345e-05/0.4696, allocations: 33.69 kB / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.4696, allocations: 4 kB / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.4696, allocations: 0 / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.4696, allocations: 4.094 kB / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.4696, allocations: 0 / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.4696, allocations: 0 / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.4696, allocations: 0 / 0.5682 GB, free: 13.57 MB / 414.1 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.623e-05/0.4697, allocations: 136.6 kB / 0.5683 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.317e-05/0.4697, allocations: 7.922 kB / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.4697, allocations: 3 kB / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.4697, allocations: 0 / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4697, allocations: 0 / 0.5683 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4697, allocations: 11.98 kB / 0.5683 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.4698, allocations: 112.8 kB / 0.5684 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.4698, allocations: 0 / 0.5684 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.635e-06/0.4698, allocations: 7.875 kB / 0.5684 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.4698, allocations: 0 / 0.5684 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.4698, allocations: 15.94 kB / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.4698, allocations: 0 / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4698, allocations: 0 / 0.5685 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.47, allocations: 94.77 kB / 0.5685 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-06/0.47, allocations: 7.938 kB / 0.5686 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.47, allocations: 0 / 0.5686 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-06/0.47, allocations: 0 / 0.5686 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.47, allocations: 3.984 kB / 0.5686 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.47, allocations: 4 kB / 0.5686 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.556e-05/0.47, allocations: 75.28 kB / 0.5686 GB, free: 13.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.47, allocations: 0 / 0.5686 GB, free: 13.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.4704, allocations: 51.8 kB / 0.5687 GB, free: 12.96 MB / 414.1 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.001549/0.4719, allocations: 0.5295 MB / 0.5692 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.472, allocations: 63.39 kB / 0.5693 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.472, allocations: 4 kB / 0.5693 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.846e-05/0.4721, allocations: 59.41 kB / 0.5693 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.4722, allocations: 4 kB / 0.5693 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001919/0.4724, allocations: 73 kB / 0.5694 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.4727, allocations: 0.6845 MB / 0.5701 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.372e-06/0.4727, allocations: 0 / 0.5701 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/0.4727, allocations: 7.438 kB / 0.5701 GB, free: 11.51 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.4727, allocations: 0 / 0.5701 GB, free: 11.51 MB / 414.1 MB Notification: Performance of Templates: time 0.005799/0.4785, allocations: 2.152 MB / 0.5722 GB, free: 9.348 MB / 414.1 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.0.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: 5.554145451635122]