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.001027/0.001027, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 78.44 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1284, allocations: 62.44 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00191/0.1304, allocations: 499 kB / 480.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.1324, allocations: 1.142 MB / 481.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.717e-05/0.1324, allocations: 0 / 481.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.1325, allocations: 4 kB / 481.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.1325, allocations: 3.938 kB / 481.8 MB, free: 3.527 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.001903/0.1344, allocations: 0.6684 MB / 482.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.426e-05/0.1344, allocations: 11.98 kB / 482.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.401e-05/0.1345, allocations: 7.984 kB / 482.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.199e-05/0.1345, allocations: 3.938 kB / 482.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.287e-05/0.1345, allocations: 0 / 482.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-06/0.1345, allocations: 0 / 482.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002765/0.1373, allocations: 2.445 MB / 484.9 MB, free: 408 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-06/0.1373, allocations: 4 kB / 484.9 MB, free: 404 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.745e-05/0.1373, allocations: 0 / 484.9 MB, free: 404 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.1378, allocations: 351.5 kB / 485.2 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.505e-06/0.1378, allocations: 4 kB / 485.2 MB, free: 48 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1378, allocations: 3.938 kB / 485.2 MB, free: 44 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1378, allocations: 0 / 485.2 MB, free: 44 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.0004728/0.1383, allocations: 381.1 kB / 485.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1383, allocations: 8.031 kB / 485.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.725e-05/0.1384, allocations: 30.56 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.1384, allocations: 3.938 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.615e-05/0.1385, allocations: 163.1 kB / 485.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.1385, allocations: 3.938 kB / 485.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.1385, allocations: 0 / 485.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.664e-05/0.1386, allocations: 41.64 kB / 485.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1387, allocations: 4 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.1387, allocations: 3.984 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1387, allocations: 0 / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.695e-05/0.1387, allocations: 0 / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.1388, allocations: 145.6 kB / 486 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.898e-05/0.1389, allocations: 18.61 kB / 486 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.1389, allocations: 8.859 kB / 486 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.1389, allocations: 0 / 486 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.682e-05/0.139, allocations: 64.33 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.139, allocations: 3.938 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001713/0.1392, allocations: 63.39 kB / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.1392, allocations: 81.05 kB / 486.3 MB, free: 14.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.489e-05/0.1393, allocations: 89.86 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.1393, allocations: 25.83 kB / 486.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.44e-05/0.1393, allocations: 84.14 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.1393, allocations: 0 / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.1394, allocations: 21.7 kB / 486.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.1395, allocations: 310.8 kB / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.205e-05/0.1395, allocations: 4 kB / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.1395, allocations: 0 / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.259e-05/0.1396, allocations: 64.2 kB / 486.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1396, allocations: 8 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.393e-05/0.1397, allocations: 67.39 kB / 486.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.1397, allocations: 29.7 kB / 486.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1397, allocations: 0 / 486.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.1397, allocations: 4 kB / 486.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1397, allocations: 0 / 486.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1397, allocations: 0 / 486.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.1398, allocations: 0 / 486.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1398, allocations: 0 / 486.9 MB, free: 14.06 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.000122/0.1399, allocations: 143.5 kB / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-06/0.1399, allocations: 0 / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.938e-06/0.1399, allocations: 7.109 kB / 487.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1399, allocations: 0 / 487.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1399, allocations: 0 / 487.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.14, allocations: 0 / 487.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.787e-05/0.1401, allocations: 149.6 kB / 487.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1401, allocations: 3.938 kB / 487.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.194e-06/0.1401, allocations: 0 / 487.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1401, allocations: 3.938 kB / 487.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.1401, allocations: 4 kB / 487.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1401, allocations: 3.984 kB / 487.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1401, allocations: 0 / 487.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.1402, allocations: 94.78 kB / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.994e-05/0.1403, allocations: 81.02 kB / 487.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.1403, allocations: 7.984 kB / 487.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.189e-05/0.1403, allocations: 0 / 487.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.631e-05/0.1403, allocations: 7.922 kB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.1403, allocations: 4.031 kB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.616e-05/0.1404, allocations: 75.28 kB / 487.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1404, allocations: 0 / 487.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004267/0.1408, allocations: 51.92 kB / 487.6 MB, free: 13.33 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.002091/0.1429, allocations: 1.061 MB / 488.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.337e-05/0.143, allocations: 63.39 kB / 488.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.143, allocations: 0 / 488.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.294e-05/0.1431, allocations: 59.47 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.1432, allocations: 4 kB / 488.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.1436, allocations: 142.5 kB / 488.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.1438, allocations: 0.6729 MB / 489.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.611e-06/0.1438, allocations: 0 / 489.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.337e-05/0.1439, allocations: 7.438 kB / 489.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1439, allocations: 0 / 489.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.164, allocations: 3.021 MB / 492.6 MB, free: 8.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.389/7.553, allocations: 15.94 kB / 492.6 MB, free: 8.262 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