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.001422/0.001422, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001646/0.001646, allocations: 188 kB / 18.71 MB, free: 4.387 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.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.21 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.2013/0.2013, allocations: 44.18 MB / 336.7 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 59.91 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.358, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00177/0.3598, allocations: 0.4902 MB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.3619, allocations: 1.146 MB / 0.52 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.888e-05/0.3619, allocations: 0 / 0.52 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.3619, allocations: 7.938 kB / 0.52 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.832e-06/0.362, allocations: 1.062 kB / 0.52 GB, free: 2.234 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.002461/0.3644, allocations: 0.67 MB / 0.5207 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.074e-05/0.3645, allocations: 5.125 kB / 0.5207 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.849e-05/0.3646, allocations: 1.953 kB / 0.5207 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.787e-05/0.3646, allocations: 5.156 kB / 0.5207 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.731e-05/0.3646, allocations: 0 / 0.5207 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-06/0.3646, allocations: 1.219 kB / 0.5207 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003861/0.3685, allocations: 2.445 MB / 0.5231 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.338e-06/0.3685, allocations: 0 / 0.5231 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.3685, allocations: 9.359 kB / 0.5231 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000695/0.3692, allocations: 347.9 kB / 0.5234 GB, free: 1.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3693, allocations: 8.812 kB / 0.5234 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3693, allocations: 0 / 0.5234 GB, free: 1.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.3693, allocations: 1 kB / 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.0005818/0.3699, allocations: 381.5 kB / 0.5238 GB, free: 1.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3699, allocations: 10 kB / 0.5238 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.498e-05/0.3699, allocations: 30.56 kB / 0.5238 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.908e-05/0.37, allocations: 1.094 kB / 0.5238 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.326e-05/0.37, allocations: 159.1 kB / 0.524 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3701, allocations: 9.016 kB / 0.524 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.3701, allocations: 5.125 kB / 0.524 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.723e-05/0.3702, allocations: 39.88 kB / 0.524 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.3702, allocations: 0 / 0.524 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.036e-06/0.3702, allocations: 0 / 0.524 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3702, allocations: 1.094 kB / 0.524 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.011e-05/0.3702, allocations: 9.078 kB / 0.524 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.202e-05/0.3703, allocations: 146.7 kB / 0.5242 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.215e-05/0.3704, allocations: 16.83 kB / 0.5242 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.137e-05/0.3704, allocations: 9.984 kB / 0.5242 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.3704, allocations: 3.938 kB / 0.5242 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.3704, allocations: 62.42 kB / 0.5243 GB, free: 444 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3704, allocations: 3.938 kB / 0.5243 GB, free: 440 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001512/0.3706, allocations: 62.17 kB / 0.5243 GB, free: 372 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.3706, allocations: 78.3 kB / 0.5244 GB, free: 276 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.244e-05/0.3706, allocations: 89.86 kB / 0.5245 GB, free: 176 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.662e-06/0.3707, allocations: 34.95 kB / 0.5245 GB, free: 136 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.307e-06/0.3707, allocations: 80.14 kB / 0.5246 GB, free: 52 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.3707, allocations: 1.094 kB / 0.5246 GB, free: 52 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.493e-05/0.3707, allocations: 14.91 kB / 0.5246 GB, free: 32 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3709, allocations: 316 kB / 0.5249 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.3709, allocations: 1.125 kB / 0.5249 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-06/0.3709, allocations: 5.125 kB / 0.5249 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.626e-05/0.3709, allocations: 63.95 kB / 0.525 GB, free: 15.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3709, allocations: 3.938 kB / 0.525 GB, free: 15.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.124e-05/0.371, allocations: 65.11 kB / 0.525 GB, free: 15.56 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.3711, allocations: 32.17 kB / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3711, allocations: 0 / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.3711, allocations: 0 / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3711, allocations: 1.062 kB / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.3711, allocations: 0 / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.3711, allocations: 0.8438 kB / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.3711, allocations: 1.125 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 7.978e-05/0.3712, allocations: 141.5 kB / 0.5252 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.967e-06/0.3712, allocations: 1.25 kB / 0.5252 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.335e-05/0.3713, allocations: 11.06 kB / 0.5252 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3713, allocations: 5.625 kB / 0.5252 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3713, allocations: 0 / 0.5252 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.3713, allocations: 0 / 0.5252 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.879e-05/0.3714, allocations: 147.4 kB / 0.5254 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3714, allocations: 0 / 0.5254 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.444e-06/0.3714, allocations: 4 kB / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3714, allocations: 5.281 kB / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.3714, allocations: 0 / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3714, allocations: 1.281 kB / 0.5254 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3714, allocations: 3.984 kB / 0.5254 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.3715, allocations: 94.25 kB / 0.5255 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.423e-05/0.3716, allocations: 77.11 kB / 0.5255 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.3716, allocations: 9.516 kB / 0.5256 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.3716, allocations: 0 / 0.5256 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.3716, allocations: 5.219 kB / 0.5256 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.3717, allocations: 0 / 0.5256 GB, free: 14.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.716e-05/0.3717, allocations: 77.25 kB / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3717, allocations: 0 / 0.5256 GB, free: 14.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005085/0.3722, allocations: 50.77 kB / 0.5257 GB, free: 14.86 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.001922/0.3741, allocations: 1.072 MB / 0.5267 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.3743, allocations: 68.02 kB / 0.5268 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3743, allocations: 4.062 kB / 0.5268 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.237e-05/0.3743, allocations: 59.88 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.0001328/0.3744, allocations: 1.25 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.0004925/0.3749, allocations: 137.6 kB / 0.527 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.3752, allocations: 0.6741 MB / 0.5276 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.893e-06/0.3752, allocations: 0 / 0.5276 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.131e-05/0.3752, allocations: 14.17 kB / 0.5277 GB, free: 13.01 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3752, allocations: 0 / 0.5277 GB, free: 13.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.3972, allocations: 3.048 MB / 0.5306 GB, free: 11.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/8.126, allocations: 10.53 kB / 0.5306 GB, free: 11.45 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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