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.001077/0.001077, allocations: 121.7 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.001189/0.00119, allocations: 199.8 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.324/1.324, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2161/0.2161, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.347, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002045/0.3491, allocations: 0.49 MB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.3511, allocations: 1.145 MB / 0.5321 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.01e-05/0.3511, allocations: 0 / 0.5321 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.3511, allocations: 0 / 0.5321 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.863e-06/0.3512, allocations: 3.938 kB / 0.5321 GB, free: 12.18 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.002349/0.3535, allocations: 0.6729 MB / 0.5327 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.425e-05/0.3536, allocations: 1.375 kB / 0.5327 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.634e-05/0.3536, allocations: 5.359 kB / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.583e-05/0.3537, allocations: 4 kB / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.951e-05/0.3537, allocations: 1.375 kB / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.3537, allocations: 0 / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003887/0.3576, allocations: 2.454 MB / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.3576, allocations: 0 / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.84e-05/0.3576, allocations: 1.312 kB / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007013/0.3584, allocations: 352.7 kB / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3584, allocations: 0 / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.3584, allocations: 0 / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.3584, allocations: 0.9062 kB / 0.5355 GB, free: 10.53 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.0007058/0.3591, allocations: 377.4 kB / 0.5359 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3592, allocations: 9.875 kB / 0.5359 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.3592, allocations: 39.59 kB / 0.5359 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.3592, allocations: 4 kB / 0.5359 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.3594, allocations: 163.1 kB / 0.5361 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.3594, allocations: 9.062 kB / 0.5361 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.3594, allocations: 0.9375 kB / 0.5361 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.3595, allocations: 31.92 kB / 0.5361 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.3595, allocations: 3.938 kB / 0.5361 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.3595, allocations: 0.9062 kB / 0.5361 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3596, allocations: 0 / 0.5361 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.384e-05/0.3596, allocations: 2.031 kB / 0.5361 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001652/0.3598, allocations: 154.5 kB / 0.5363 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.903e-05/0.3598, allocations: 24.23 kB / 0.5363 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.395e-05/0.3599, allocations: 9.797 kB / 0.5363 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.3599, allocations: 1.062 kB / 0.5363 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/0.3599, allocations: 57.23 kB / 0.5363 GB, free: 9.508 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.3599, allocations: 0 / 0.5363 GB, free: 9.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002104/0.3602, allocations: 67.2 kB / 0.5364 GB, free: 9.438 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.3603, allocations: 82.14 kB / 0.5365 GB, free: 9.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.676e-05/0.3603, allocations: 89.86 kB / 0.5366 GB, free: 9.242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.3604, allocations: 25.7 kB / 0.5366 GB, free: 9.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.3604, allocations: 85.14 kB / 0.5367 GB, free: 9.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.3604, allocations: 0 / 0.5367 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.3605, allocations: 12.78 kB / 0.5367 GB, free: 9.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3606, allocations: 310.8 kB / 0.537 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.3606, allocations: 5.125 kB / 0.537 GB, free: 8.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.135e-06/0.3607, allocations: 1.031 kB / 0.537 GB, free: 8.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.38e-05/0.3607, allocations: 63.78 kB / 0.5371 GB, free: 8.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3607, allocations: 3.938 kB / 0.5371 GB, free: 8.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.639e-05/0.3608, allocations: 62.56 kB / 0.5371 GB, free: 8.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.3609, allocations: 31.36 kB / 0.5371 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.3609, allocations: 3.938 kB / 0.5371 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3609, allocations: 1.25 kB / 0.5372 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-06/0.3609, allocations: 8.078 kB / 0.5372 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3609, allocations: 0 / 0.5372 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.3609, allocations: 1.125 kB / 0.5372 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.361, allocations: 0 / 0.5372 GB, free: 8.605 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 8.911e-05/0.361, allocations: 138.9 kB / 0.5373 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-06/0.3611, allocations: 0 / 0.5373 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.401e-05/0.3611, allocations: 4.281 kB / 0.5373 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3611, allocations: 0 / 0.5373 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3611, allocations: 0 / 0.5373 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3611, allocations: 5.25 kB / 0.5373 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.3612, allocations: 158.7 kB / 0.5375 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3612, allocations: 0 / 0.5375 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.3612, allocations: 1.125 kB / 0.5375 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3612, allocations: 0 / 0.5375 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.3612, allocations: 1.219 kB / 0.5375 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3613, allocations: 3.938 kB / 0.5375 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3613, allocations: 9.062 kB / 0.5375 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.3614, allocations: 100.9 kB / 0.5376 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.3614, allocations: 82.28 kB / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.3614, allocations: 0 / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.054e-05/0.3615, allocations: 1.062 kB / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.732e-05/0.3615, allocations: 1.156 kB / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-06/0.3615, allocations: 1.156 kB / 0.5376 GB, free: 8.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.906e-05/0.3615, allocations: 75.28 kB / 0.5377 GB, free: 7.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3615, allocations: 0 / 0.5377 GB, free: 7.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005119/0.362, allocations: 52.11 kB / 0.5378 GB, free: 7.93 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.002034/0.3641, allocations: 1.069 MB / 0.5388 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.924e-05/0.3642, allocations: 60.75 kB / 0.5389 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3642, allocations: 0 / 0.5389 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.256e-05/0.3642, allocations: 58.73 kB / 0.5389 GB, free: 6.945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.3644, allocations: 2.062 kB / 0.5389 GB, free: 6.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004325/0.3648, allocations: 138.4 kB / 0.5391 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.365, allocations: 0.6701 MB / 0.5397 GB, free: 6.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.995e-06/0.3651, allocations: 4.125 kB / 0.5397 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.644e-05/0.3651, allocations: 9.062 kB / 0.5397 GB, free: 6.082 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3651, allocations: 0 / 0.5397 GB, free: 6.082 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.3854, allocations: 3.046 MB / 0.5427 GB, free: 4.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.063, allocations: 9.875 kB / 0.5427 GB, free: 4.523 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