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.0009677/0.0009677, allocations: 78.66 kB / 21.42 MB, free: 3.07 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.001367/0.001367, allocations: 171.2 kB / 24.82 MB, free: 8.914 MB / 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.104/1.104, allocations: 177.1 MB / 205.3 MB, free: 5.461 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.4063/0.4063, allocations: 34.26 MB / 296.1 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 179] 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.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.392e-05/2.592e-05, allocations: 2.312 kB / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00167/0.001696, allocations: 0.5007 MB / 379 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.004247, allocations: 1.127 MB / 380.1 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.308e-05/0.00428, allocations: 0 / 380.1 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.004306, allocations: 0 / 380.1 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.035e-05/0.004316, allocations: 0 / 380.1 MB, free: 0.7734 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.002292/0.006608, allocations: 0.758 MB / 380.9 MB, free: 28 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.402e-05/0.006672, allocations: 7.922 kB / 380.9 MB, free: 20 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.126e-05/0.006713, allocations: 4 kB / 380.9 MB, free: 16 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.638e-05/0.00675, allocations: 4 kB / 380.9 MB, free: 12 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.605e-05/0.006776, allocations: 3.984 kB / 380.9 MB, free: 8 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.006787, allocations: 0 / 380.9 MB, free: 8 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003654/0.01044, allocations: 2.532 MB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/0.01045, allocations: 7.938 kB / 383.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.864e-05/0.01047, allocations: 0 / 383.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.01097, allocations: 371.3 kB / 383.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.01097, allocations: 0 / 383.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.01097, allocations: 0 / 383.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.01098, allocations: 7.938 kB / 383.8 MB, free: 13.1 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.0004506/0.01143, allocations: 409.5 kB / 384.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.01148, allocations: 8.031 kB / 384.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.01152, allocations: 0 / 384.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.333e-05/0.0116, allocations: 112.1 kB / 384.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.01161, allocations: 0 / 384.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.01162, allocations: 0 / 384.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.01173, allocations: 63.33 kB / 384.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.01174, allocations: 0 / 384.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.01174, allocations: 3.984 kB / 384.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.01175, allocations: 0 / 384.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.089e-05/0.01177, allocations: 33.64 kB / 384.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001206/0.01189, allocations: 93.27 kB / 384.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.439e-05/0.01196, allocations: 48.77 kB / 384.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.278e-05/0.01198, allocations: 37.48 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.01199, allocations: 4 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.483e-05/0.01204, allocations: 63.08 kB / 384.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.213e-06/0.01204, allocations: 4 kB / 384.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002004/0.01224, allocations: 118.7 kB / 384.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.01229, allocations: 77.11 kB / 384.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.452e-05/0.01235, allocations: 146.4 kB / 385 MB, free: 11.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.01236, allocations: 29.64 kB / 385 MB, free: 11.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/0.01241, allocations: 134.8 kB / 385.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.01243, allocations: 352 / 385.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.01247, allocations: 19.38 kB / 385.2 MB, free: 11.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.01263, allocations: 496.1 kB / 385.6 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.138e-05/0.01265, allocations: 25.7 kB / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.259e-05/0.01267, allocations: 29.7 kB / 385.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.26e-05/0.01274, allocations: 63.09 kB / 385.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01274, allocations: 0 / 385.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.992e-05/0.01283, allocations: 97.05 kB / 385.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.01287, allocations: 35.73 kB / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.01287, allocations: 0 / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.01289, allocations: 3.938 kB / 385.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.01289, allocations: 0 / 385.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.0129, allocations: 0 / 385.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.833e-05/0.01291, allocations: 4 kB / 385.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.01292, allocations: 0 / 385.9 MB, free: 10.69 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.000102/0.01302, allocations: 182.3 kB / 386.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.01303, allocations: 4 kB / 386.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.648e-05/0.01305, allocations: 11.03 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.01305, allocations: 3.938 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.01305, allocations: 0 / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.01306, allocations: 0 / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.974e-05/0.01314, allocations: 97.27 kB / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.01314, allocations: 0 / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.01314, allocations: 0 / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.01314, allocations: 0 / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.01315, allocations: 3.984 kB / 386.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-07/0.01315, allocations: 0 / 386.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.01315, allocations: 3.938 kB / 386.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.01326, allocations: 131.8 kB / 386.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.478e-06/0.01327, allocations: 7.969 kB / 386.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.01328, allocations: 0 / 386.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.854e-06/0.01329, allocations: 0 / 386.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.01331, allocations: 4 kB / 386.3 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.01331, allocations: 7.938 kB / 386.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.936e-05/0.01335, allocations: 127.1 kB / 386.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01335, allocations: 0 / 386.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003311/0.01368, allocations: 51.8 kB / 386.5 MB, free: 9.988 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.00149/0.01517, allocations: 0.5674 MB / 387.1 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.01529, allocations: 122.4 kB / 387.2 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.0153, allocations: 64 / 387.2 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.422e-05/0.01534, allocations: 96.78 kB / 387.3 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.01547, allocations: 6.188 kB / 387.3 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001851/0.01566, allocations: 113.7 kB / 387.4 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.194e-05/0.0157, allocations: 55.3 kB / 387.5 MB, free: 9.004 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.033e-06/0.01571, allocations: 0 / 387.5 MB, free: 9.004 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.165e-05/0.01577, allocations: 74.19 kB / 387.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01577, allocations: 0 / 387.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of Templates: time 0.004906/0.02068, allocations: 2.447 MB / 390 MB, free: 6.473 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.6706874147057533]