Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001421/0.001421, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.4 MB, free: 9.141 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2303/0.2303, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 76.89 kB / 417.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1127, allocations: 62.44 MB / 479.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001766/0.1145, allocations: 0.5473 MB / 480.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.1164, allocations: 1.146 MB / 481.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.522e-05/0.1165, allocations: 0 / 481.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.201e-05/0.1165, allocations: 0 / 481.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.258e-06/0.1165, allocations: 0 / 481.3 MB, free: 3.801 MB / 350.1 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.001901/0.1184, allocations: 0.6428 MB / 481.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.357e-05/0.1185, allocations: 7.922 kB / 481.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.204e-05/0.1185, allocations: 0 / 481.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.1185, allocations: 7.984 kB / 481.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.824e-05/0.1186, allocations: 4 kB / 481.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-06/0.1186, allocations: 0 / 481.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002911/0.1215, allocations: 2.601 MB / 484.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.264e-06/0.1215, allocations: 0 / 484.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.1215, allocations: 0 / 484.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005333/0.1221, allocations: 439.2 kB / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1221, allocations: 0 / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1221, allocations: 0 / 485 MB, free: 116 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1221, allocations: 0 / 485 MB, free: 116 kB / 350.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.0004663/0.1226, allocations: 377.1 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1226, allocations: 8.031 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.348e-05/0.1227, allocations: 38.55 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.484e-05/0.1227, allocations: 3.938 kB / 485.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.1228, allocations: 163 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.1228, allocations: 0 / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-06/0.1228, allocations: 0 / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.237e-05/0.1229, allocations: 37.58 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1229, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.1229, allocations: 4 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1229, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.766e-05/0.123, allocations: 3.938 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.1231, allocations: 153.7 kB / 485.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.7e-05/0.1232, allocations: 14.58 kB / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.576e-05/0.1232, allocations: 8.953 kB / 485.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-06/0.1232, allocations: 0 / 485.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.1232, allocations: 64.2 kB / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1232, allocations: 3.938 kB / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.1234, allocations: 67.39 kB / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.1235, allocations: 81.05 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.576e-05/0.1235, allocations: 89.86 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.1235, allocations: 25.7 kB / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.514e-05/0.1236, allocations: 80.14 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.1236, allocations: 4 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.1236, allocations: 13.84 kB / 486.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1237, allocations: 314.8 kB / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-06/0.1238, allocations: 0 / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.1238, allocations: 7.984 kB / 486.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.994e-05/0.1238, allocations: 64.2 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1238, allocations: 0 / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.392e-05/0.1239, allocations: 59.41 kB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.1239, allocations: 33.7 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.124, allocations: 8.078 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.124, allocations: 0 / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.124, allocations: 0 / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.124, allocations: 3.938 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.124, allocations: 0 / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.124, allocations: 3.984 kB / 486.7 MB, free: 14.13 MB / 366.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.695e-05/0.1241, allocations: 139.5 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.1241, allocations: 0 / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.584e-06/0.1241, allocations: 3.125 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1241, allocations: 8 kB / 486.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1241, allocations: 3.938 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1242, allocations: 0 / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.021e-05/0.1243, allocations: 145.7 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1243, allocations: 3.938 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1243, allocations: 0 / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1243, allocations: 3.984 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.1243, allocations: 4 kB / 487 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1243, allocations: 3.938 kB / 487 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1243, allocations: 3.938 kB / 487 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.462e-05/0.1244, allocations: 90.83 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.1244, allocations: 85.02 kB / 487.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1245, allocations: 3.938 kB / 487.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-06/0.1245, allocations: 0 / 487.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.371e-05/0.1245, allocations: 3.938 kB / 487.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.1245, allocations: 7.984 kB / 487.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.613e-05/0.1245, allocations: 75.28 kB / 487.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1245, allocations: 4.031 kB / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003411/0.1249, allocations: 52 kB / 487.3 MB, free: 13.39 MB / 366.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.002018/0.1269, allocations: 1.051 MB / 488.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.378e-05/0.127, allocations: 63.41 kB / 488.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.127, allocations: 0 / 488.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.057e-05/0.1271, allocations: 59.39 kB / 488.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1272, allocations: 3.938 kB / 488.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003451/0.1276, allocations: 142.7 kB / 488.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.1278, allocations: 0.669 MB / 489.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.083e-06/0.1278, allocations: 3.984 kB / 489.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.351e-05/0.1278, allocations: 7.438 kB / 489.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1278, allocations: 0 / 489.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0136/0.1414, allocations: 2.953 MB / 492.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.1416, allocations: 230.2 kB / 492.5 MB, free: 8.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.217, allocations: 0 / 492.5 MB, free: 8.211 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches