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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 109.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 183.1 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2/0.2, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 63.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.351, allocations: 60.83 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001719/0.3527, allocations: 497.3 kB / 0.5189 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.355, allocations: 1.155 MB / 0.52 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.345e-05/0.3551, allocations: 0 / 0.52 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.3551, allocations: 0 / 0.52 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.893e-06/0.3551, allocations: 0 / 0.52 GB, free: 2.25 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.002065/0.3572, allocations: 0.6712 MB / 0.5207 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.878e-05/0.3573, allocations: 5.703 kB / 0.5207 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.778e-05/0.3573, allocations: 11.23 kB / 0.5207 GB, free: 2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.638e-05/0.3573, allocations: 3.938 kB / 0.5207 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.686e-05/0.3573, allocations: 0 / 0.5207 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.183e-06/0.3574, allocations: 1 kB / 0.5207 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003647/0.361, allocations: 2.446 MB / 0.5231 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.141e-05/0.361, allocations: 0 / 0.5231 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.48e-05/0.3611, allocations: 5.359 kB / 0.5231 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004614/0.3615, allocations: 356.5 kB / 0.5234 GB, free: 1.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3616, allocations: 3.938 kB / 0.5234 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3616, allocations: 1.312 kB / 0.5234 GB, free: 1.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3616, allocations: 0 / 0.5234 GB, free: 1.449 MB / 382.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.0003814/0.362, allocations: 377.8 kB / 0.5238 GB, free: 1.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.362, allocations: 9.781 kB / 0.5238 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.774e-05/0.3621, allocations: 34.56 kB / 0.5238 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.16e-05/0.3621, allocations: 1.406 kB / 0.5238 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.114e-05/0.3622, allocations: 159.1 kB / 0.524 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3622, allocations: 3.938 kB / 0.524 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.897e-06/0.3622, allocations: 1.375 kB / 0.524 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.767e-05/0.3623, allocations: 43.39 kB / 0.524 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.3623, allocations: 0 / 0.524 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.3623, allocations: 1.094 kB / 0.524 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3623, allocations: 0 / 0.524 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.72e-05/0.3623, allocations: 5.125 kB / 0.524 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.383e-05/0.3624, allocations: 155.9 kB / 0.5242 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.322e-05/0.3625, allocations: 15.7 kB / 0.5242 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.512e-05/0.3625, allocations: 6.016 kB / 0.5242 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.3625, allocations: 9.047 kB / 0.5242 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.3625, allocations: 57.58 kB / 0.5243 GB, free: 448 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3626, allocations: 3.938 kB / 0.5243 GB, free: 444 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001544/0.3627, allocations: 70.91 kB / 0.5243 GB, free: 368 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.3628, allocations: 78.14 kB / 0.5244 GB, free: 272 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.158e-05/0.3628, allocations: 89.86 kB / 0.5245 GB, free: 172 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.901e-06/0.3628, allocations: 29.69 kB / 0.5245 GB, free: 136 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.154e-05/0.3628, allocations: 81.17 kB / 0.5246 GB, free: 52 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.3628, allocations: 0 / 0.5246 GB, free: 52 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.145e-05/0.3629, allocations: 16.31 kB / 0.5246 GB, free: 32 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.363, allocations: 316.2 kB / 0.5249 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.427e-06/0.363, allocations: 0 / 0.5249 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.382e-06/0.363, allocations: 5.094 kB / 0.5249 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.687e-05/0.3631, allocations: 59.2 kB / 0.525 GB, free: 15.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3631, allocations: 5.312 kB / 0.525 GB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.426e-05/0.3631, allocations: 64.86 kB / 0.5251 GB, free: 15.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.3632, allocations: 31.95 kB / 0.5251 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.3632, allocations: 0 / 0.5251 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3632, allocations: 1.312 kB / 0.5251 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.3632, allocations: 4 kB / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.3632, allocations: 0 / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.65e-05/0.3632, allocations: 1.188 kB / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.3633, allocations: 5.75 kB / 0.5251 GB, free: 15.53 MB / 398.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 8.703e-05/0.3634, allocations: 140.8 kB / 0.5252 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.182e-05/0.3634, allocations: 4.953 kB / 0.5252 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.748e-06/0.3634, allocations: 11.02 kB / 0.5252 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3634, allocations: 1.281 kB / 0.5252 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3634, allocations: 4 kB / 0.5252 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3634, allocations: 0 / 0.5252 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.396e-05/0.3635, allocations: 147.2 kB / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3635, allocations: 1.125 kB / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.994e-06/0.3635, allocations: 3.984 kB / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-07/0.3635, allocations: 0 / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-06/0.3635, allocations: 1.125 kB / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3635, allocations: 0 / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3635, allocations: 1.344 kB / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.295e-05/0.3636, allocations: 96.61 kB / 0.5255 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.3637, allocations: 78.45 kB / 0.5256 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.3637, allocations: 4.594 kB / 0.5256 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.3637, allocations: 5.031 kB / 0.5256 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-06/0.3637, allocations: 0 / 0.5256 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.3637, allocations: 1.75 kB / 0.5256 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.615e-05/0.3637, allocations: 75.28 kB / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.3638, allocations: 0 / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.3641, allocations: 59.67 kB / 0.5257 GB, free: 14.85 MB / 398.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.00161/0.3657, allocations: 1.07 MB / 0.5267 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.3658, allocations: 64.61 kB / 0.5268 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3659, allocations: 0 / 0.5268 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.343e-05/0.3659, allocations: 59.38 kB / 0.5269 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.366, allocations: 1.5 kB / 0.5269 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003639/0.3664, allocations: 129.4 kB / 0.527 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.3667, allocations: 0.6781 MB / 0.5277 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.3667, allocations: 4 kB / 0.5277 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.517e-05/0.3667, allocations: 8.844 kB / 0.5277 GB, free: 13.01 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3667, allocations: 0 / 0.5277 GB, free: 13.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.3854, allocations: 3.047 MB / 0.5306 GB, free: 11.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.227, allocations: 6.281 kB / 0.5306 GB, free: 11.46 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches