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.001659/0.001659, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002152/0.002152, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2153/0.2153, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 76.2 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3579, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001954/0.36, allocations: 486.8 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.3622, allocations: 1.149 MB / 0.5321 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.209e-05/0.3623, allocations: 3.938 kB / 0.5321 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.235e-05/0.3623, allocations: 3.938 kB / 0.5321 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.3623, allocations: 3.938 kB / 0.5321 GB, free: 12.17 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.001891/0.3642, allocations: 0.6786 MB / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.824e-05/0.3643, allocations: 5.844 kB / 0.5328 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.984e-05/0.3643, allocations: 1.75 kB / 0.5328 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.898e-05/0.3643, allocations: 3.984 kB / 0.5328 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.581e-05/0.3644, allocations: 0 / 0.5328 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-06/0.3644, allocations: 1.781 kB / 0.5328 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003152/0.3675, allocations: 2.444 MB / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.418e-06/0.3676, allocations: 1.031 kB / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.3676, allocations: 9.25 kB / 0.5352 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004867/0.3681, allocations: 356 kB / 0.5355 GB, free: 10.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3681, allocations: 2.156 kB / 0.5355 GB, free: 10.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3681, allocations: 0 / 0.5355 GB, free: 10.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3681, allocations: 0 / 0.5355 GB, free: 10.51 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.0004411/0.3686, allocations: 377.4 kB / 0.5359 GB, free: 10.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3686, allocations: 9.375 kB / 0.5359 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.15e-05/0.3687, allocations: 31.75 kB / 0.5359 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.755e-05/0.3687, allocations: 0 / 0.5359 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.3688, allocations: 164 kB / 0.5361 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.3688, allocations: 7.938 kB / 0.5361 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-06/0.3688, allocations: 1.031 kB / 0.5361 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.073e-05/0.3689, allocations: 35.86 kB / 0.5361 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3689, allocations: 0 / 0.5361 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.369, allocations: 1.062 kB / 0.5361 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.369, allocations: 4 kB / 0.5361 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.331e-05/0.369, allocations: 6.125 kB / 0.5361 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.3692, allocations: 150.6 kB / 0.5363 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.114e-05/0.3692, allocations: 24.64 kB / 0.5363 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.673e-05/0.3692, allocations: 6.016 kB / 0.5363 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.3692, allocations: 0 / 0.5363 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/0.3693, allocations: 61.45 kB / 0.5363 GB, free: 9.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.3693, allocations: 0 / 0.5363 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001808/0.3695, allocations: 66.7 kB / 0.5364 GB, free: 9.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.3696, allocations: 77.98 kB / 0.5365 GB, free: 9.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.814e-05/0.3696, allocations: 99.33 kB / 0.5366 GB, free: 9.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.3696, allocations: 25.7 kB / 0.5366 GB, free: 9.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.3697, allocations: 80.14 kB / 0.5367 GB, free: 9.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.3697, allocations: 1.625 kB / 0.5367 GB, free: 9.117 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.3697, allocations: 14.97 kB / 0.5367 GB, free: 9.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3699, allocations: 312.9 kB / 0.537 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.047e-05/0.3699, allocations: 0 / 0.537 GB, free: 8.785 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.576e-05/0.3699, allocations: 1.531 kB / 0.537 GB, free: 8.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.044e-05/0.3699, allocations: 71.12 kB / 0.5371 GB, free: 8.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.37, allocations: 3.938 kB / 0.5371 GB, free: 8.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.564e-05/0.37, allocations: 61.38 kB / 0.5371 GB, free: 8.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.3701, allocations: 34.8 kB / 0.5372 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3701, allocations: 0 / 0.5372 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3701, allocations: 0 / 0.5372 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.106e-06/0.3701, allocations: 5.297 kB / 0.5372 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.3701, allocations: 0 / 0.5372 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.494e-05/0.3701, allocations: 0 / 0.5372 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.3702, allocations: 5.406 kB / 0.5372 GB, free: 8.594 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 9.126e-05/0.3702, allocations: 137.2 kB / 0.5373 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.203e-06/0.3703, allocations: 1.438 kB / 0.5373 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.01e-05/0.3703, allocations: 3.125 kB / 0.5373 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.3703, allocations: 1.594 kB / 0.5373 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3703, allocations: 0 / 0.5373 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3703, allocations: 0 / 0.5373 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.3704, allocations: 155 kB / 0.5375 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3704, allocations: 0 / 0.5375 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3704, allocations: 9.5 kB / 0.5375 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.3704, allocations: 0 / 0.5375 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.3705, allocations: 1.344 kB / 0.5375 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3705, allocations: 3.938 kB / 0.5375 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3705, allocations: 0 / 0.5375 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.222e-05/0.3706, allocations: 93.45 kB / 0.5376 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.3e-05/0.3706, allocations: 86.44 kB / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.3706, allocations: 0 / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.395e-06/0.3706, allocations: 5.594 kB / 0.5376 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.3707, allocations: 4 kB / 0.5376 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.3707, allocations: 1.406 kB / 0.5377 GB, free: 8.016 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.561e-05/0.3707, allocations: 75.28 kB / 0.5377 GB, free: 7.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3707, allocations: 0 / 0.5377 GB, free: 7.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000334/0.371, allocations: 51.89 kB / 0.5378 GB, free: 7.922 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.001647/0.3727, allocations: 1.058 MB / 0.5388 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.3728, allocations: 65.12 kB / 0.5389 GB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3728, allocations: 0 / 0.5389 GB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.332e-05/0.3729, allocations: 58.8 kB / 0.5389 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.373, allocations: 5.266 kB / 0.5389 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003522/0.3734, allocations: 142.1 kB / 0.5391 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.3736, allocations: 0.6701 MB / 0.5397 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.963e-06/0.3736, allocations: 0 / 0.5397 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.289e-05/0.3736, allocations: 8.594 kB / 0.5397 GB, free: 6.078 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3736, allocations: 1.156 kB / 0.5397 GB, free: 6.078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.3929, allocations: 3.051 MB / 0.5427 GB, free: 4.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.399/8.792, allocations: 10.02 kB / 0.5427 GB, free: 4.508 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