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.001258/0.001258, allocations: 117.6 kB / 17.78 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 204.7 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2345/0.2345, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002256/0.002256, allocations: 75.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3392, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001648/0.3409, allocations: 0.4885 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.3431, allocations: 1.144 MB / 0.5322 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.297e-05/0.3431, allocations: 1.312 kB / 0.5322 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.584e-05/0.3431, allocations: 0 / 0.5322 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.193e-05/0.3431, allocations: 0 / 0.5322 GB, free: 12.14 MB / 398.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.002205/0.3454, allocations: 0.6828 MB / 0.5329 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.835e-05/0.3454, allocations: 1.844 kB / 0.5329 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.227e-05/0.3455, allocations: 4.844 kB / 0.5329 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.325e-05/0.3455, allocations: 5.156 kB / 0.5329 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.814e-05/0.3455, allocations: 1.438 kB / 0.5329 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-06/0.3455, allocations: 3.938 kB / 0.5329 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003436/0.349, allocations: 2.446 MB / 0.5353 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.349, allocations: 0 / 0.5353 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.508e-05/0.349, allocations: 5.453 kB / 0.5353 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005339/0.3495, allocations: 361.2 kB / 0.5356 GB, free: 10.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3496, allocations: 0 / 0.5356 GB, free: 10.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3496, allocations: 0 / 0.5356 GB, free: 10.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.3496, allocations: 0 / 0.5356 GB, free: 10.47 MB / 398.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.0005627/0.3502, allocations: 378.2 kB / 0.536 GB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.3502, allocations: 10.06 kB / 0.536 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.043e-05/0.3503, allocations: 30.56 kB / 0.536 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.327e-05/0.3503, allocations: 9.094 kB / 0.536 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.3505, allocations: 163.1 kB / 0.5362 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.3505, allocations: 3.938 kB / 0.5362 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.3505, allocations: 1.281 kB / 0.5362 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.3506, allocations: 32.3 kB / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3506, allocations: 0 / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.3506, allocations: 1.219 kB / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.3507, allocations: 0 / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.93e-05/0.3507, allocations: 1.125 kB / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.3509, allocations: 162.7 kB / 0.5364 GB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.895e-05/0.3509, allocations: 20.75 kB / 0.5364 GB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.658e-05/0.3509, allocations: 9.891 kB / 0.5364 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-06/0.351, allocations: 0 / 0.5364 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.838e-05/0.351, allocations: 57.39 kB / 0.5365 GB, free: 9.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.351, allocations: 1.188 kB / 0.5365 GB, free: 9.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002086/0.3512, allocations: 78 kB / 0.5365 GB, free: 9.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.3513, allocations: 82.12 kB / 0.5366 GB, free: 9.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.852e-05/0.3514, allocations: 93.81 kB / 0.5367 GB, free: 9.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.3514, allocations: 26.83 kB / 0.5367 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.3515, allocations: 80.14 kB / 0.5368 GB, free: 9.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.3515, allocations: 0.9375 kB / 0.5368 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.3515, allocations: 11.75 kB / 0.5368 GB, free: 9.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3517, allocations: 311.9 kB / 0.5371 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-06/0.3517, allocations: 4.125 kB / 0.5371 GB, free: 8.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.3517, allocations: 1.094 kB / 0.5371 GB, free: 8.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.021e-05/0.3518, allocations: 63.45 kB / 0.5372 GB, free: 8.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3518, allocations: 5.062 kB / 0.5372 GB, free: 8.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.097e-05/0.3519, allocations: 65.92 kB / 0.5373 GB, free: 8.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.3519, allocations: 33.48 kB / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.352, allocations: 0 / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.352, allocations: 1.156 kB / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.352, allocations: 96 / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.352, allocations: 4 kB / 0.5373 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.352, allocations: 1.031 kB / 0.5373 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.352, allocations: 1.094 kB / 0.5373 GB, free: 8.547 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 0.0001099/0.3522, allocations: 145.7 kB / 0.5374 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-06/0.3522, allocations: 0.9688 kB / 0.5374 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.055e-05/0.3522, allocations: 3.125 kB / 0.5374 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3522, allocations: 1.125 kB / 0.5374 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3522, allocations: 0 / 0.5374 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3522, allocations: 4 kB / 0.5374 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.3524, allocations: 151.8 kB / 0.5376 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3524, allocations: 3.938 kB / 0.5376 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-06/0.3524, allocations: 1.062 kB / 0.5376 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3524, allocations: 0 / 0.5376 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3524, allocations: 1.125 kB / 0.5376 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3524, allocations: 0 / 0.5376 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3524, allocations: 5.062 kB / 0.5376 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001219/0.3525, allocations: 100.5 kB / 0.5377 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.3526, allocations: 78.2 kB / 0.5378 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.3526, allocations: 1.062 kB / 0.5378 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-06/0.3526, allocations: 1.062 kB / 0.5378 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.085e-05/0.3526, allocations: 0 / 0.5378 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.3526, allocations: 5.062 kB / 0.5378 GB, free: 7.969 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.521e-05/0.3527, allocations: 75.28 kB / 0.5378 GB, free: 7.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3527, allocations: 1.125 kB / 0.5378 GB, free: 7.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.353, allocations: 55.2 kB / 0.5379 GB, free: 7.871 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.001892/0.3549, allocations: 1.069 MB / 0.5389 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.3551, allocations: 61.66 kB / 0.539 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3551, allocations: 0 / 0.539 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.492e-05/0.3551, allocations: 58.34 kB / 0.5391 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.3552, allocations: 1.812 kB / 0.5391 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003603/0.3556, allocations: 132.8 kB / 0.5392 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.3559, allocations: 0.6707 MB / 0.5398 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.03e-06/0.3559, allocations: 4.125 kB / 0.5398 GB, free: 6.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.458e-05/0.356, allocations: 8.75 kB / 0.5399 GB, free: 6.023 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.356, allocations: 0 / 0.5399 GB, free: 6.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.3803, allocations: 3.035 MB / 0.5428 GB, free: 4.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.24/8.62, allocations: 6.312 kB / 0.5428 GB, free: 4.469 MB / 398.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