Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 79.75 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 161 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.001/1.001, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.267/0.267, allocations: 34.26 MB / 295.7 MB, free: 0.75 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 378 MB, free: 2.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.562e-05, allocations: 2.312 kB / 378 MB, free: 2.668 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001575/0.0016, allocations: 0.5046 MB / 378.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.003629, allocations: 1.139 MB / 379.7 MB, free: 1.012 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.174e-05/0.003651, allocations: 4 kB / 379.7 MB, free: 1.008 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.421e-05/0.003675, allocations: 0 / 379.7 MB, free: 1.008 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.133e-06/0.003682, allocations: 0 / 379.7 MB, free: 1.008 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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+maint.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.002295/0.005977, allocations: 0.7626 MB / 380.4 MB, free: 260 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.383e-05/0.006041, allocations: 0 / 380.4 MB, free: 260 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.006082, allocations: 4 kB / 380.4 MB, free: 256 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.029e-05/0.006112, allocations: 3.938 kB / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.783e-05/0.00613, allocations: 0 / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.133e-06/0.006137, allocations: 0 / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.008125, allocations: 2.462 MB / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-06/0.008134, allocations: 0 / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.069e-05/0.008155, allocations: 0 / 382.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003718/0.008527, allocations: 379.3 kB / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.00853, allocations: 0 / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.008532, allocations: 0 / 383.3 MB, free: 13.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.008536, allocations: 0 / 383.3 MB, free: 13.41 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.0003535/0.00889, allocations: 413.4 kB / 383.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.008925, allocations: 8.031 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.008962, allocations: 0 / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.402e-05/0.009026, allocations: 116 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.009036, allocations: 0 / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.544e-06/0.009044, allocations: 0 / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.29e-05/0.009137, allocations: 63.28 kB / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.009143, allocations: 0 / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.009152, allocations: 0 / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.009159, allocations: 0 / 383.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.601e-05/0.009175, allocations: 25.7 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.373e-05/0.009269, allocations: 120.6 kB / 384 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.111e-05/0.00932, allocations: 48.77 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.887e-05/0.009339, allocations: 37.48 kB / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.14e-06/0.009344, allocations: 0 / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.009385, allocations: 63.03 kB / 384.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.009385, allocations: 0 / 384.1 MB, free: 12.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001795/0.009565, allocations: 126.7 kB / 384.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.009606, allocations: 77.11 kB / 384.3 MB, free: 12.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.652e-05/0.009653, allocations: 142.2 kB / 384.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.009662, allocations: 25.83 kB / 384.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.009692, allocations: 130.9 kB / 384.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.009714, allocations: 352 / 384.6 MB, free: 11.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.009744, allocations: 19.38 kB / 384.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.009893, allocations: 0.4922 MB / 385.1 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.267e-05/0.009925, allocations: 25.7 kB / 385.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.76e-05/0.009943, allocations: 33.64 kB / 385.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.976e-05/0.01, allocations: 63.09 kB / 385.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.01001, allocations: 0 / 385.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.379e-05/0.0101, allocations: 97.05 kB / 385.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.01013, allocations: 33.8 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.01014, allocations: 3.938 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.01016, allocations: 0 / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.374e-06/0.01017, allocations: 4 kB / 385.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.01018, allocations: 0 / 385.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.344e-05/0.0102, allocations: 4 kB / 385.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.01021, allocations: 0 / 385.4 MB, free: 10.97 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.0001031/0.01031, allocations: 178.3 kB / 385.6 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-06/0.01032, allocations: 7.938 kB / 385.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.314e-05/0.01033, allocations: 10.92 kB / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.01033, allocations: 4 kB / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.01034, allocations: 0 / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01034, allocations: 0 / 385.6 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.859e-05/0.01041, allocations: 112.6 kB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.01041, allocations: 0 / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-07/0.01041, allocations: 0 / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.01041, allocations: 0 / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.01042, allocations: 0 / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.01043, allocations: 3.938 kB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.01043, allocations: 4 kB / 385.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.01055, allocations: 131.9 kB / 385.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-06/0.01055, allocations: 0 / 385.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.01057, allocations: 3.984 kB / 385.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.788e-06/0.01058, allocations: 7.922 kB / 385.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/0.01059, allocations: 4 kB / 385.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.0106, allocations: 0 / 385.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.638e-05/0.01063, allocations: 127.1 kB / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01063, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.01088, allocations: 55.8 kB / 386 MB, free: 10.25 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.001047/0.01193, allocations: 0.5609 MB / 386.6 MB, free: 9.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.01203, allocations: 122.5 kB / 386.7 MB, free: 9.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.01203, allocations: 4 kB / 386.7 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.78e-05/0.01206, allocations: 88.86 kB / 386.8 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.106e-05/0.01215, allocations: 4.062 kB / 386.8 MB, free: 9.492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001822/0.01233, allocations: 121.6 kB / 386.9 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.903e-05/0.01236, allocations: 55.36 kB / 387 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.889e-06/0.01237, allocations: 0 / 387 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.219e-05/0.01238, allocations: 8.5 kB / 387 MB, free: 9.254 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01238, allocations: 0 / 387 MB, free: 9.254 MB / 362.7 MB Notification: Performance of Templates: time 0.004132/0.01651, allocations: 2.435 MB / 389.4 MB, free: 6.809 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.171536487992853]