Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001237/0.001237, allocations: 77.97 kB / 21.42 MB, free: 3.062 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.004535/0.004535, allocations: 171 kB / 24.82 MB, free: 8.906 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 0.945/0.945, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2411/0.2411, allocations: 32.79 MB / 294.6 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 376.5 MB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.567e-05/1.681e-05, allocations: 2.312 kB / 376.5 MB, free: 4.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001009/0.001026, allocations: 0.5163 MB / 377 MB, free: 3.918 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.002286, allocations: 1.119 MB / 378.1 MB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.529e-05/0.002301, allocations: 0 / 378.1 MB, free: 2.789 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.11e-05/0.002312, allocations: 0 / 378.1 MB, free: 2.789 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.651e-06/0.002318, allocations: 4 kB / 378.1 MB, free: 2.785 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.0.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.0013/0.003618, allocations: 0.7529 MB / 378.8 MB, free: 2.043 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.944e-05/0.003647, allocations: 0 / 378.8 MB, free: 2.043 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.455e-05/0.003672, allocations: 11.92 kB / 378.9 MB, free: 2.031 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.022e-05/0.003692, allocations: 4 kB / 378.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.187e-05/0.003704, allocations: 0 / 378.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.42e-06/0.003709, allocations: 0 / 378.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.005621, allocations: 2.532 MB / 381.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.893e-06/0.005627, allocations: 4 kB / 381.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.166e-05/0.005639, allocations: 7.938 kB / 381.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.005968, allocations: 371.3 kB / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.005971, allocations: 0 / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005971, allocations: 0 / 381.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.005975, allocations: 0 / 381.8 MB, free: 15.12 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.0002498/0.006225, allocations: 401.5 kB / 382.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.006255, allocations: 12.03 kB / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.191e-05/0.006277, allocations: 0 / 382.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.731e-05/0.006324, allocations: 112 kB / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-06/0.006332, allocations: 4 kB / 382.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.019e-06/0.006337, allocations: 4 kB / 382.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.503e-05/0.006392, allocations: 63.34 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.278e-06/0.006396, allocations: 3.938 kB / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.759e-06/0.006401, allocations: 0 / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.006405, allocations: 0 / 382.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.721e-05/0.006422, allocations: 29.69 kB / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.529e-05/0.006507, allocations: 97.25 kB / 382.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.893e-05/0.006546, allocations: 52.7 kB / 382.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.319e-05/0.006559, allocations: 37.48 kB / 382.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-06/0.006562, allocations: 0 / 382.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.006605, allocations: 63.09 kB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.006606, allocations: 0 / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001093/0.006715, allocations: 122.7 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.006742, allocations: 81.11 kB / 382.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.561e-05/0.006778, allocations: 142.2 kB / 383 MB, free: 13.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.144e-06/0.006785, allocations: 25.7 kB / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.006842, allocations: 126.9 kB / 383.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.068e-05/0.006853, allocations: 4.281 kB / 383.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.006873, allocations: 23.36 kB / 383.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.638e-05/0.00697, allocations: 492.2 kB / 383.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.105e-05/0.006981, allocations: 29.7 kB / 383.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.179e-05/0.006993, allocations: 29.7 kB / 383.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.046e-05/0.007023, allocations: 59.09 kB / 383.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.007024, allocations: 4 kB / 383.7 MB, free: 12.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.106e-05/0.007075, allocations: 93.05 kB / 383.8 MB, free: 12.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.007096, allocations: 33.7 kB / 383.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.0071, allocations: 0 / 383.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-06/0.007109, allocations: 7.922 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.00711, allocations: 0 / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.007112, allocations: 8.031 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.428e-06/0.007121, allocations: 0 / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.007126, allocations: 8 kB / 383.9 MB, free: 12.7 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.0001252/0.007251, allocations: 186.2 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.919e-06/0.007256, allocations: 4 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.184e-06/0.007263, allocations: 3 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.007267, allocations: 3.938 kB / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.007268, allocations: 0 / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.00727, allocations: 0 / 384.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.438e-05/0.007314, allocations: 97.2 kB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.007315, allocations: 4 kB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-07/0.007315, allocations: 0 / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.71e-07/0.007316, allocations: 0 / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-06/0.007319, allocations: 0 / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.00732, allocations: 3.984 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.007321, allocations: 0 / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.321e-05/0.007384, allocations: 131.8 kB / 384.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-06/0.007389, allocations: 7.984 kB / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-06/0.007396, allocations: 0 / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.439e-06/0.0074, allocations: 0 / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-06/0.007406, allocations: 0 / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.00741, allocations: 11.97 kB / 384.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.408e-05/0.007434, allocations: 123.2 kB / 384.5 MB, free: 12.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007434, allocations: 0 / 384.5 MB, free: 12.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002019/0.007636, allocations: 51.8 kB / 384.5 MB, free: 12.01 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.0009866/0.008623, allocations: 0.5668 MB / 385.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.172e-05/0.008695, allocations: 114.5 kB / 385.2 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.008696, allocations: 0 / 385.2 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.524e-05/0.008721, allocations: 92.78 kB / 385.3 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.809e-05/0.008799, allocations: 10.05 kB / 385.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001192/0.008918, allocations: 117.6 kB / 385.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.483e-05/0.008943, allocations: 55.3 kB / 385.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.478e-06/0.008948, allocations: 4.125 kB / 385.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.008977, allocations: 74.19 kB / 385.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.008978, allocations: 0 / 385.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of Templates: time 0.003486/0.01246, allocations: 2.444 MB / 388 MB, free: 8.496 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_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","",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.9896804951131344]