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.001488/0.001488, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2421/0.2421, allocations: 46.09 MB / 343.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 85.58 kB / 416.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1464, allocations: 62.44 MB / 479.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001987/0.1485, allocations: 0.5518 MB / 479.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.1506, allocations: 1.197 MB / 481.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.152e-05/0.1507, allocations: 0 / 481.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.1507, allocations: 0 / 481.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.55e-06/0.1507, allocations: 0 / 481.1 MB, free: 3.93 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.002131/0.1529, allocations: 0.6233 MB / 481.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.524e-05/0.1529, allocations: 11.94 kB / 481.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.89e-05/0.1529, allocations: 0 / 481.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.153, allocations: 3.938 kB / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.406e-05/0.153, allocations: 0 / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-06/0.153, allocations: 0 / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003639/0.1567, allocations: 2.601 MB / 484.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.898e-06/0.1567, allocations: 0 / 484.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.624e-05/0.1567, allocations: 0 / 484.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000742/0.1575, allocations: 423.3 kB / 484.8 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1575, allocations: 4 kB / 484.8 MB, free: 284 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1575, allocations: 3.938 kB / 484.8 MB, free: 280 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1575, allocations: 0 / 484.8 MB, free: 280 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.0005407/0.158, allocations: 377.1 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.1581, allocations: 16.81 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.012e-05/0.1582, allocations: 30.56 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/0.1582, allocations: 7.938 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.1583, allocations: 163 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.1583, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.1583, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.632e-05/0.1584, allocations: 37.69 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1585, allocations: 0 / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.1585, allocations: 0 / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1585, allocations: 4 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.28e-05/0.1585, allocations: 7.875 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.1587, allocations: 145.7 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.044e-05/0.1587, allocations: 14.58 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.491e-05/0.1588, allocations: 4.859 kB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.517e-06/0.1588, allocations: 4.094 kB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.1588, allocations: 64.25 kB / 485.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.402e-06/0.1589, allocations: 4 kB / 485.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001889/0.159, allocations: 63.34 kB / 485.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.1591, allocations: 84.98 kB / 485.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.652e-05/0.1592, allocations: 89.86 kB / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1592, allocations: 25.7 kB / 485.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/0.1592, allocations: 84.12 kB / 486 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.1593, allocations: 0 / 486 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.1593, allocations: 21.7 kB / 486 MB, free: 14.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.1594, allocations: 315 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.1595, allocations: 0 / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.737e-06/0.1595, allocations: 4 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.835e-05/0.1595, allocations: 56.27 kB / 486.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1595, allocations: 0 / 486.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.294e-05/0.1596, allocations: 71.33 kB / 486.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.1597, allocations: 33.7 kB / 486.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1597, allocations: 4 kB / 486.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1597, allocations: 8.078 kB / 486.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1597, allocations: 0 / 486.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1597, allocations: 7.922 kB / 486.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.829e-05/0.1597, allocations: 0 / 486.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.1598, allocations: 0 / 486.5 MB, free: 14.28 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 0.0001029/0.1599, allocations: 135.5 kB / 486.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.1599, allocations: 3.984 kB / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.658e-06/0.1599, allocations: 3.125 kB / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1599, allocations: 0 / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1599, allocations: 7.938 kB / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1599, allocations: 7.938 kB / 486.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.16, allocations: 141.7 kB / 486.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1601, allocations: 0 / 486.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1601, allocations: 0 / 486.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1601, allocations: 0 / 486.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.1601, allocations: 3.984 kB / 486.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1601, allocations: 4 kB / 486.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1601, allocations: 3.938 kB / 486.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.1602, allocations: 94.78 kB / 486.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.738e-05/0.1603, allocations: 85 kB / 487 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.1603, allocations: 4 kB / 487 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.183e-05/0.1603, allocations: 0 / 487 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.1603, allocations: 7.875 kB / 487 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.1603, allocations: 0 / 487 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.996e-05/0.1604, allocations: 75.28 kB / 487.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1604, allocations: 0 / 487.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.1608, allocations: 47.98 kB / 487.1 MB, free: 13.56 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.002306/0.1632, allocations: 1.06 MB / 488.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.1633, allocations: 67.39 kB / 488.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1633, allocations: 0 / 488.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.213e-05/0.1633, allocations: 51.41 kB / 488.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.1635, allocations: 7.938 kB / 488.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005011/0.164, allocations: 128.5 kB / 488.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.1643, allocations: 0.6848 MB / 489.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.642e-06/0.1644, allocations: 0 / 489.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.665e-05/0.1644, allocations: 7.438 kB / 489.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1644, allocations: 0 / 489.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.1825, allocations: 2.903 MB / 492 MB, free: 8.641 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002631/0.1828, allocations: 237 kB / 492.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.141, allocations: 4.062 kB / 492.2 MB, free: 8.379 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