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.001909/0.001909, allocations: 127.4 kB / 17.79 MB, free: 5.246 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.002187/0.002187, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.452/1.452, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.2282/0.2282, allocations: 46.91 MB / 357.1 MB, free: 10.31 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.001883/0.001883, allocations: 67.89 kB / 0.4909 GB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1355, allocations: 65.99 MB / 0.5554 GB, free: 5.84 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00172/0.1373, allocations: 495.3 kB / 0.5558 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.1394, allocations: 1.161 MB / 0.557 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.586e-05/0.1394, allocations: 0 / 0.557 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.1395, allocations: 4 kB / 0.557 GB, free: 4.184 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.923e-06/0.1395, allocations: 3.938 kB / 0.557 GB, free: 4.18 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.002108/0.1416, allocations: 0.6698 MB / 0.5576 GB, free: 3.512 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.164e-05/0.1416, allocations: 0 / 0.5576 GB, free: 3.512 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.743e-05/0.1417, allocations: 4 kB / 0.5576 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.908e-05/0.1417, allocations: 4 kB / 0.5576 GB, free: 3.504 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.531e-05/0.1417, allocations: 4 kB / 0.5576 GB, free: 3.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.281e-06/0.1417, allocations: 4 kB / 0.5576 GB, free: 3.496 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.1447, allocations: 2.444 MB / 0.56 GB, free: 1.047 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.1447, allocations: 4 kB / 0.56 GB, free: 1.043 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.036e-05/0.1447, allocations: 0 / 0.56 GB, free: 1.043 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.1451, allocations: 367.3 kB / 0.5604 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1451, allocations: 0 / 0.5604 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1451, allocations: 0 / 0.5604 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1452, allocations: 0 / 0.5604 GB, free: 0.6836 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.000517/0.1457, allocations: 376.7 kB / 0.5607 GB, free: 268 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1457, allocations: 8.031 kB / 0.5607 GB, free: 260 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.442e-05/0.1458, allocations: 30.56 kB / 0.5608 GB, free: 220 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.1458, allocations: 0 / 0.5608 GB, free: 220 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.1459, allocations: 167.1 kB / 0.5609 GB, free: 12 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.1459, allocations: 7.922 kB / 0.5609 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.1459, allocations: 0 / 0.5609 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.146, allocations: 33.69 kB / 0.561 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1461, allocations: 4 kB / 0.561 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.1461, allocations: 0 / 0.561 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1461, allocations: 0 / 0.561 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.829e-05/0.1461, allocations: 0 / 0.561 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.1462, allocations: 149.6 kB / 0.5611 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.141e-05/0.1463, allocations: 30.59 kB / 0.5611 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.581e-05/0.1463, allocations: 4.859 kB / 0.5612 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.1463, allocations: 0 / 0.5612 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.408e-05/0.1464, allocations: 68.27 kB / 0.5612 GB, free: 15.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1464, allocations: 0 / 0.5612 GB, free: 15.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001893/0.1466, allocations: 59.41 kB / 0.5613 GB, free: 15.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.1466, allocations: 85.22 kB / 0.5614 GB, free: 15.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.557e-05/0.1467, allocations: 97.81 kB / 0.5615 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.1467, allocations: 25.7 kB / 0.5615 GB, free: 15.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.1467, allocations: 80.14 kB / 0.5616 GB, free: 15.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.1467, allocations: 0 / 0.5616 GB, free: 15.24 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.1468, allocations: 13.72 kB / 0.5616 GB, free: 15.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1469, allocations: 318.8 kB / 0.5619 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.1469, allocations: 0 / 0.5619 GB, free: 14.9 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.109e-06/0.1469, allocations: 0 / 0.5619 GB, free: 14.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.111e-05/0.147, allocations: 68.27 kB / 0.5619 GB, free: 14.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.147, allocations: 3.938 kB / 0.5619 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.237e-05/0.147, allocations: 63.39 kB / 0.562 GB, free: 14.74 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.1471, allocations: 33.7 kB / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1471, allocations: 0 / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1471, allocations: 0 / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1471, allocations: 4 kB / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1471, allocations: 3.984 kB / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.426e-05/0.1471, allocations: 0 / 0.562 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.1471, allocations: 4.031 kB / 0.562 GB, free: 14.69 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 9.949e-05/0.1472, allocations: 145.7 kB / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.1472, allocations: 0 / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.252e-05/0.1473, allocations: 7.109 kB / 0.5622 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1473, allocations: 0 / 0.5622 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1473, allocations: 0 / 0.5622 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.1473, allocations: 3.828 kB / 0.5622 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.1474, allocations: 157.6 kB / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.1474, allocations: 0 / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-06/0.1474, allocations: 7.938 kB / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1474, allocations: 0 / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.1474, allocations: 0 / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.1474, allocations: 0 / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1474, allocations: 0 / 0.5623 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001101/0.1475, allocations: 94.77 kB / 0.5624 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.1476, allocations: 77.11 kB / 0.5625 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.1476, allocations: 0 / 0.5625 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-06/0.1476, allocations: 8.031 kB / 0.5625 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.1476, allocations: 4 kB / 0.5625 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1476, allocations: 0 / 0.5625 GB, free: 14.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.736e-05/0.1476, allocations: 75.28 kB / 0.5626 GB, free: 14.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1476, allocations: 0 / 0.5626 GB, free: 14.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.148, allocations: 55.73 kB / 0.5626 GB, free: 13.96 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.001851/0.1498, allocations: 1.069 MB / 0.5637 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.1499, allocations: 59.41 kB / 0.5638 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1499, allocations: 8 kB / 0.5638 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.679e-05/0.15, allocations: 55.41 kB / 0.5638 GB, free: 12.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1501, allocations: 4 kB / 0.5638 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003901/0.1505, allocations: 142.4 kB / 0.564 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.1508, allocations: 0.669 MB / 0.5646 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.304e-06/0.1508, allocations: 0 / 0.5646 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.682e-05/0.1508, allocations: 7.438 kB / 0.5646 GB, free: 11.9 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1508, allocations: 0 / 0.5646 GB, free: 11.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.1758, allocations: 3.061 MB / 0.5676 GB, free: 8.906 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.001/8.177, allocations: 15.11 kB / 0.5676 GB, free: 8.895 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.216084859988769]