Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009846/0.0009847, allocations: 198.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 226.5 MB / 243.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007194/0.0007193, allocations: 96.64 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2906/0.2906, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002765, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2929, allocations: 62.96 MB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005286/0.2935, allocations: 217.9 kB / 0.5162 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.2949, allocations: 1.069 MB / 0.5172 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.474e-05/0.2949, allocations: 0 / 0.5172 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.074e-05/0.2949, allocations: 4 kB / 0.5172 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.932e-06/0.2949, allocations: 0 / 0.5172 GB, free: 36.38 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.001382/0.2963, allocations: 0.6322 MB / 0.5178 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.02e-05/0.2963, allocations: 3.375 kB / 0.5178 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.163e-05/0.2964, allocations: 0 / 0.5178 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.612e-05/0.2964, allocations: 2.812 kB / 0.5178 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.791e-05/0.2964, allocations: 3.984 kB / 0.5178 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.729e-06/0.2964, allocations: 0 / 0.5178 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/0.2989, allocations: 2.243 MB / 0.52 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.214e-06/0.2989, allocations: 3.984 kB / 0.52 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.643e-05/0.2989, allocations: 29.64 kB / 0.5201 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002936/0.2992, allocations: 320.6 kB / 0.5204 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2992, allocations: 0 / 0.5204 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2992, allocations: 0 / 0.5204 GB, free: 35.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.2992, allocations: 0 / 0.5204 GB, free: 35.78 MB / 378.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.0002866/0.2995, allocations: 384.2 kB / 0.5207 GB, free: 35.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2996, allocations: 7.844 kB / 0.5207 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.16e-05/0.2996, allocations: 37.38 kB / 0.5208 GB, free: 35.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.972e-05/0.2996, allocations: 8.938 kB / 0.5208 GB, free: 35.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.624e-05/0.2997, allocations: 163.8 kB / 0.5209 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.2997, allocations: 4.125 kB / 0.5209 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.2998, allocations: 2.625 kB / 0.5209 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.7e-05/0.2998, allocations: 25.7 kB / 0.521 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.2998, allocations: 2.531 kB / 0.521 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.2999, allocations: 0 / 0.521 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.2999, allocations: 0 / 0.521 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.302e-05/0.2999, allocations: 0 / 0.521 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.479e-05/0.3, allocations: 155.7 kB / 0.5211 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.117e-05/0.3, allocations: 29.08 kB / 0.5211 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.115e-05/0.3, allocations: 4.859 kB / 0.5212 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.3, allocations: 0 / 0.5212 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3001, allocations: 58.95 kB / 0.5212 GB, free: 34.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3001, allocations: 0 / 0.5212 GB, free: 34.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001241/0.3002, allocations: 60.53 kB / 0.5213 GB, free: 34.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.283e-05/0.3002, allocations: 87.48 kB / 0.5214 GB, free: 34.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.66e-05/0.3003, allocations: 93.86 kB / 0.5214 GB, free: 34.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.6e-06/0.3003, allocations: 25.7 kB / 0.5215 GB, free: 34.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.357e-06/0.3003, allocations: 84.12 kB / 0.5215 GB, free: 34.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.3003, allocations: 2.406 kB / 0.5215 GB, free: 34.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-06/0.3003, allocations: 0 / 0.5215 GB, free: 34.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.3004, allocations: 314.3 kB / 0.5218 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.772e-06/0.3004, allocations: 3.938 kB / 0.5219 GB, free: 34.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.509e-06/0.3004, allocations: 6.594 kB / 0.5219 GB, free: 34.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.69e-05/0.3004, allocations: 59.02 kB / 0.5219 GB, free: 34.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3004, allocations: 0 / 0.5219 GB, free: 34.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.638e-05/0.3005, allocations: 74.77 kB / 0.522 GB, free: 33.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.3005, allocations: 28.86 kB / 0.522 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3005, allocations: 0 / 0.522 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3005, allocations: 6.344 kB / 0.522 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3005, allocations: 0 / 0.522 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.3005, allocations: 0 / 0.522 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.285e-05/0.3006, allocations: 4.094 kB / 0.522 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.3006, allocations: 2.312 kB / 0.522 GB, free: 33.9 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.3006, allocations: 142.1 kB / 0.5222 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.881e-06/0.3006, allocations: 0 / 0.5222 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.025e-06/0.3006, allocations: 6.719 kB / 0.5222 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3006, allocations: 0 / 0.5222 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.3006, allocations: 0 / 0.5222 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.3007, allocations: 0 / 0.5222 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.564e-05/0.3007, allocations: 151.8 kB / 0.5223 GB, free: 33.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3007, allocations: 4 kB / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3007, allocations: 0 / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3007, allocations: 0 / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.583e-06/0.3007, allocations: 7.094 kB / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.3007, allocations: 0 / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3007, allocations: 0 / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.792e-05/0.3008, allocations: 99.09 kB / 0.5224 GB, free: 33.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.321e-05/0.3008, allocations: 80.08 kB / 0.5225 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.3008, allocations: 4.031 kB / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.935e-06/0.3009, allocations: 0 / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.4e-05/0.3009, allocations: 0 / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.3009, allocations: 5.688 kB / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.046e-05/0.3009, allocations: 75.28 kB / 0.5226 GB, free: 33.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3009, allocations: 0 / 0.5226 GB, free: 33.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003207/0.3012, allocations: 70.72 kB / 0.5226 GB, free: 33.25 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001451/0.3027, allocations: 1.041 MB / 0.5237 GB, free: 32.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.083e-05/0.3028, allocations: 65.61 kB / 0.5237 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3028, allocations: 0 / 0.5237 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.503e-05/0.3028, allocations: 54.44 kB / 0.5238 GB, free: 32.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001105/0.3029, allocations: 3.031 kB / 0.5238 GB, free: 32.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000291/0.3032, allocations: 165.9 kB / 0.5239 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.504e-05/0.3033, allocations: 0.6692 MB / 0.5246 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.806e-06/0.3033, allocations: 7.438 kB / 0.5246 GB, free: 31.42 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3033, allocations: 2.938 kB / 0.5246 GB, free: 31.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.417/4.72, allocations: 2.998 MB / 0.5275 GB, free: 31.09 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches