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.001345/0.001345, allocations: 123.4 kB / 17.79 MB, free: 5.281 MB / 14.72 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.001676/0.001676, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 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.511/1.511, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2598/0.2598, allocations: 46.92 MB / 357.1 MB, free: 10.32 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+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: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 67.88 kB / 0.4909 GB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1413, allocations: 65.99 MB / 0.5554 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001951/0.1433, allocations: 499.2 kB / 0.5558 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.1457, allocations: 1.169 MB / 0.557 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.949e-05/0.1457, allocations: 0 / 0.557 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.521e-05/0.1457, allocations: 0 / 0.557 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.231e-06/0.1457, allocations: 0 / 0.557 GB, free: 4.223 MB / 414.1 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.002272/0.148, allocations: 0.6681 MB / 0.5576 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.893e-05/0.148, allocations: 0 / 0.5576 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.648e-05/0.1481, allocations: 11.98 kB / 0.5576 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.66e-05/0.1481, allocations: 3.984 kB / 0.5576 GB, free: 3.543 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.479e-05/0.1481, allocations: 4 kB / 0.5576 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-06/0.1481, allocations: 0 / 0.5576 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.1514, allocations: 2.448 MB / 0.56 GB, free: 1.086 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.238e-06/0.1514, allocations: 0 / 0.56 GB, free: 1.086 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.1514, allocations: 0 / 0.56 GB, free: 1.086 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000564/0.152, allocations: 371.3 kB / 0.5604 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.152, allocations: 0 / 0.5604 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.152, allocations: 0 / 0.5604 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.152, allocations: 0 / 0.5604 GB, free: 0.7227 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.0005334/0.1525, allocations: 372.7 kB / 0.5607 GB, free: 312 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1526, allocations: 8.031 kB / 0.5608 GB, free: 304 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.1526, allocations: 38.55 kB / 0.5608 GB, free: 256 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.696e-05/0.1526, allocations: 4 kB / 0.5608 GB, free: 252 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.1528, allocations: 163 kB / 0.561 GB, free: 48 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1528, allocations: 3.938 kB / 0.561 GB, free: 44 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.1528, allocations: 0 / 0.561 GB, free: 44 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.977e-05/0.1529, allocations: 33.64 kB / 0.561 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1529, allocations: 0 / 0.561 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.1529, allocations: 0 / 0.561 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.1529, allocations: 0 / 0.561 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.678e-05/0.1529, allocations: 0 / 0.561 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001767/0.1531, allocations: 161.6 kB / 0.5611 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.606e-05/0.1531, allocations: 26.45 kB / 0.5612 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.542e-05/0.1532, allocations: 4.859 kB / 0.5612 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.1532, allocations: 4.094 kB / 0.5612 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.1532, allocations: 56.27 kB / 0.5612 GB, free: 15.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1532, allocations: 0 / 0.5612 GB, free: 15.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001977/0.1534, allocations: 67.39 kB / 0.5613 GB, free: 15.6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.1535, allocations: 81.23 kB / 0.5614 GB, free: 15.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.744e-05/0.1535, allocations: 93.81 kB / 0.5615 GB, free: 15.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.1535, allocations: 25.7 kB / 0.5615 GB, free: 15.37 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.375e-05/0.1536, allocations: 84.08 kB / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.1536, allocations: 0 / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.1536, allocations: 13.72 kB / 0.5616 GB, free: 15.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1538, allocations: 310.8 kB / 0.5619 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.1538, allocations: 4 kB / 0.5619 GB, free: 14.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.186e-05/0.1538, allocations: 11.98 kB / 0.5619 GB, free: 14.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.853e-05/0.1539, allocations: 56.27 kB / 0.5619 GB, free: 14.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1539, allocations: 7.938 kB / 0.562 GB, free: 14.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.208e-05/0.154, allocations: 55.41 kB / 0.562 GB, free: 14.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.154, allocations: 33.7 kB / 0.562 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.154, allocations: 3.984 kB / 0.562 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1541, allocations: 0 / 0.562 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.1541, allocations: 0 / 0.562 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.1541, allocations: 3.938 kB / 0.562 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.1541, allocations: 4.094 kB / 0.562 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.1541, allocations: 4 kB / 0.5621 GB, free: 14.74 MB / 430.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.0001171/0.1542, allocations: 145.7 kB / 0.5622 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.158e-06/0.1542, allocations: 0 / 0.5622 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.115e-05/0.1542, allocations: 3.125 kB / 0.5622 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1542, allocations: 3.984 kB / 0.5622 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1542, allocations: 4 kB / 0.5622 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1542, allocations: 3.938 kB / 0.5622 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.1544, allocations: 149.6 kB / 0.5623 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1544, allocations: 4 kB / 0.5624 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1544, allocations: 0 / 0.5624 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1544, allocations: 0 / 0.5624 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.884e-06/0.1544, allocations: 4 kB / 0.5624 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1544, allocations: 0 / 0.5624 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1544, allocations: 0 / 0.5624 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.1545, allocations: 90.77 kB / 0.5624 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.1545, allocations: 85.14 kB / 0.5625 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1545, allocations: 0 / 0.5625 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.688e-06/0.1546, allocations: 3.938 kB / 0.5625 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.1546, allocations: 3.938 kB / 0.5625 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.1546, allocations: 3.984 kB / 0.5625 GB, free: 14.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.48e-05/0.1546, allocations: 75.28 kB / 0.5626 GB, free: 14.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1546, allocations: 4 kB / 0.5626 GB, free: 14.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00037/0.155, allocations: 51.75 kB / 0.5627 GB, free: 14.01 MB / 430.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.00201/0.157, allocations: 1.062 MB / 0.5637 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000121/0.1571, allocations: 67.34 kB / 0.5638 GB, free: 12.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1571, allocations: 0 / 0.5638 GB, free: 12.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.486e-05/0.1572, allocations: 67.33 kB / 0.5638 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.1573, allocations: 0 / 0.5638 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.1577, allocations: 130.5 kB / 0.5639 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.1581, allocations: 0.669 MB / 0.5646 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.103e-06/0.1581, allocations: 0 / 0.5646 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.275e-05/0.1581, allocations: 11.44 kB / 0.5646 GB, free: 11.95 MB / 430.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1581, allocations: 4.125 kB / 0.5646 GB, free: 11.95 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.1852, allocations: 3.059 MB / 0.5676 GB, free: 8.953 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.28/8.465, allocations: 12 kB / 0.5676 GB, free: 8.941 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_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: 11.499963532900438]