Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.008988/0.008988, allocations: 106 kB / 21.98 MB, free: 5.227 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.002402/0.002402, allocations: 216.6 kB / 25.29 MB, free: 3.203 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.421/1.421, allocations: 230.5 MB / 258.9 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2381/0.2381, allocations: 46.93 MB / 362.3 MB, free: 4.184 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 83.86 kB / 0.4982 GB, free: 7.27 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3573, allocations: 66.07 MB / 0.5627 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001661/0.359, allocations: 499.8 kB / 0.5632 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.3611, allocations: 1.185 MB / 0.5643 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.959e-05/0.3611, allocations: 3.938 kB / 0.5643 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.3611, allocations: 0 / 0.5643 GB, free: 2.539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.36e-06/0.3611, allocations: 0 / 0.5643 GB, free: 2.539 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 4.1.0-beta.om/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.002114/0.3632, allocations: 0.7462 MB / 0.5651 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.306e-05/0.3633, allocations: 4 kB / 0.5651 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.416e-05/0.3633, allocations: 0 / 0.5651 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.417e-05/0.3633, allocations: 3.938 kB / 0.5651 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.588e-05/0.3633, allocations: 0 / 0.5651 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.771e-06/0.3633, allocations: 0 / 0.5651 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003526/0.3669, allocations: 2.512 MB / 0.5675 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.3669, allocations: 4 kB / 0.5675 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.29e-05/0.3669, allocations: 0 / 0.5675 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004579/0.3674, allocations: 359.4 kB / 0.5679 GB, free: 14.92 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3674, allocations: 0 / 0.5679 GB, free: 14.92 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3674, allocations: 3.938 kB / 0.5679 GB, free: 14.92 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.3674, allocations: 0 / 0.5679 GB, free: 14.92 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.0004908/0.3679, allocations: 307.5 kB / 0.5682 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3679, allocations: 8.031 kB / 0.5682 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.3679, allocations: 3.984 kB / 0.5682 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.3681, allocations: 105.2 kB / 0.5683 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.3681, allocations: 0 / 0.5683 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.3681, allocations: 0 / 0.5683 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.3682, allocations: 33.64 kB / 0.5683 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3682, allocations: 0 / 0.5683 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3682, allocations: 0 / 0.5683 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3682, allocations: 3.984 kB / 0.5683 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.936e-05/0.3683, allocations: 4 kB / 0.5683 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.3684, allocations: 128.7 kB / 0.5685 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.67e-05/0.3685, allocations: 18.52 kB / 0.5685 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.631e-05/0.3685, allocations: 4.859 kB / 0.5685 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.3685, allocations: 3.938 kB / 0.5685 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.643e-05/0.3686, allocations: 60.36 kB / 0.5685 GB, free: 14.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.041e-06/0.3686, allocations: 4 kB / 0.5685 GB, free: 14.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002419/0.3688, allocations: 71.33 kB / 0.5686 GB, free: 14.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.3689, allocations: 77.11 kB / 0.5687 GB, free: 13.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.847e-05/0.3689, allocations: 97.75 kB / 0.5688 GB, free: 13.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.369, allocations: 25.7 kB / 0.5688 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.104e-05/0.369, allocations: 80.14 kB / 0.5689 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.369, allocations: 0 / 0.5689 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.3691, allocations: 13.72 kB / 0.5689 GB, free: 13.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3692, allocations: 319 kB / 0.5692 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.3693, allocations: 0 / 0.5692 GB, free: 13.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.377e-06/0.3693, allocations: 4 kB / 0.5692 GB, free: 13.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.187e-05/0.3693, allocations: 60.25 kB / 0.5693 GB, free: 13.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3693, allocations: 0 / 0.5693 GB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.409e-05/0.3694, allocations: 67.28 kB / 0.5693 GB, free: 13.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.3694, allocations: 29.7 kB / 0.5693 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3695, allocations: 4 kB / 0.5694 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3695, allocations: 4.094 kB / 0.5694 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.55e-06/0.3695, allocations: 7.984 kB / 0.5694 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3695, allocations: 0 / 0.5694 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.612e-05/0.3695, allocations: 0 / 0.5694 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.3695, allocations: 0 / 0.5694 GB, free: 13.17 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 0.000121/0.3696, allocations: 140.4 kB / 0.5695 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.3696, allocations: 3.938 kB / 0.5695 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.206e-05/0.3697, allocations: 3 kB / 0.5695 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3697, allocations: 0 / 0.5695 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3697, allocations: 4 kB / 0.5695 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3697, allocations: 4 kB / 0.5695 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.3698, allocations: 116.8 kB / 0.5696 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3698, allocations: 0 / 0.5696 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-06/0.3698, allocations: 3.938 kB / 0.5696 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3698, allocations: 0 / 0.5696 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.3698, allocations: 7.938 kB / 0.5696 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3698, allocations: 0 / 0.5696 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3698, allocations: 0 / 0.5696 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.3699, allocations: 94.77 kB / 0.5697 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.166e-06/0.3699, allocations: 7.938 kB / 0.5697 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.3699, allocations: 0 / 0.5697 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-06/0.3699, allocations: 0 / 0.5697 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.3699, allocations: 4 kB / 0.5697 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.3699, allocations: 4 kB / 0.5697 GB, free: 12.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.734e-05/0.37, allocations: 75.28 kB / 0.5698 GB, free: 12.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.37, allocations: 0 / 0.5698 GB, free: 12.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.3703, allocations: 51.8 kB / 0.5699 GB, free: 12.57 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.001522/0.3718, allocations: 0.5383 MB / 0.5704 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.3719, allocations: 55.41 kB / 0.5704 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3719, allocations: 4.062 kB / 0.5704 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.903e-05/0.372, allocations: 63.39 kB / 0.5705 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.3721, allocations: 10.44 kB / 0.5705 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000203/0.3723, allocations: 98.7 kB / 0.5706 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.3726, allocations: 0.6729 MB / 0.5713 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.294e-05/0.3726, allocations: 7.438 kB / 0.5713 GB, free: 11.09 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3726, allocations: 3.938 kB / 0.5713 GB, free: 11.09 MB / 414.1 MB Notification: Performance of Templates: time 0.004765/0.3774, allocations: 2.595 MB / 0.5738 GB, free: 8.488 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 8.125095571856946]