Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001851/0.001851, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002036/0.002036, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2244/0.2244, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002601/0.002601, allocations: 79.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3242, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001609/0.3258, allocations: 0.4957 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.328, allocations: 1.139 MB / 0.5322 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.328, allocations: 0 / 0.5322 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.328, allocations: 5.469 kB / 0.5322 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.115e-06/0.328, allocations: 0 / 0.5322 GB, free: 12.12 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 4.1.0-beta.om/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.002103/0.3301, allocations: 0.6717 MB / 0.5328 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.432e-05/0.3302, allocations: 1.25 kB / 0.5328 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.3302, allocations: 10.45 kB / 0.5328 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.319e-05/0.3303, allocations: 0 / 0.5328 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.857e-05/0.3303, allocations: 3.984 kB / 0.5329 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.29e-06/0.3303, allocations: 5.625 kB / 0.5329 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.3335, allocations: 2.446 MB / 0.5352 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.215e-06/0.3335, allocations: 0 / 0.5352 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.786e-05/0.3335, allocations: 0.8438 kB / 0.5352 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.334, allocations: 361.2 kB / 0.5356 GB, free: 10.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.334, allocations: 4 kB / 0.5356 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.334, allocations: 1.312 kB / 0.5356 GB, free: 10.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.334, allocations: 0 / 0.5356 GB, free: 10.45 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.0004617/0.3345, allocations: 377.5 kB / 0.536 GB, free: 10.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3345, allocations: 10.12 kB / 0.536 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.244e-05/0.3346, allocations: 34.56 kB / 0.536 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.284e-05/0.3346, allocations: 1.594 kB / 0.536 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.3347, allocations: 159.1 kB / 0.5362 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3347, allocations: 7.922 kB / 0.5362 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.3348, allocations: 5.344 kB / 0.5362 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.022e-05/0.3349, allocations: 35.09 kB / 0.5362 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.3349, allocations: 1.25 kB / 0.5362 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.3349, allocations: 4 kB / 0.5362 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.3349, allocations: 0 / 0.5362 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.05e-05/0.3349, allocations: 1.219 kB / 0.5362 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.3351, allocations: 150.9 kB / 0.5363 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.465e-05/0.3352, allocations: 20.55 kB / 0.5364 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.432e-05/0.3352, allocations: 14.27 kB / 0.5364 GB, free: 9.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.3352, allocations: 0 / 0.5364 GB, free: 9.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.164e-05/0.3353, allocations: 61.56 kB / 0.5364 GB, free: 9.438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3353, allocations: 1.375 kB / 0.5364 GB, free: 9.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.3355, allocations: 62.69 kB / 0.5365 GB, free: 9.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.3356, allocations: 77.11 kB / 0.5366 GB, free: 9.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.894e-05/0.3356, allocations: 97.81 kB / 0.5367 GB, free: 9.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.3357, allocations: 31.23 kB / 0.5367 GB, free: 9.137 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.31e-05/0.3357, allocations: 84.12 kB / 0.5368 GB, free: 9.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.3357, allocations: 1.781 kB / 0.5368 GB, free: 9.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.3358, allocations: 11.44 kB / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3359, allocations: 310.8 kB / 0.5371 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.336, allocations: 1.688 kB / 0.5371 GB, free: 8.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.25e-06/0.336, allocations: 0 / 0.5371 GB, free: 8.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.78e-05/0.336, allocations: 68.55 kB / 0.5372 GB, free: 8.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.336, allocations: 7.938 kB / 0.5372 GB, free: 8.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.338e-05/0.3361, allocations: 65.77 kB / 0.5372 GB, free: 8.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.3362, allocations: 31.27 kB / 0.5373 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3362, allocations: 0 / 0.5373 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3362, allocations: 1.312 kB / 0.5373 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3362, allocations: 0 / 0.5373 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.3362, allocations: 0 / 0.5373 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.567e-05/0.3363, allocations: 1.5 kB / 0.5373 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.3363, allocations: 0 / 0.5373 GB, free: 8.535 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.0001154/0.3364, allocations: 149.7 kB / 0.5374 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-06/0.3364, allocations: 1.062 kB / 0.5374 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.523e-05/0.3364, allocations: 7.125 kB / 0.5374 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3364, allocations: 1.188 kB / 0.5374 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3365, allocations: 0 / 0.5374 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3365, allocations: 1.125 kB / 0.5374 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.3366, allocations: 146.7 kB / 0.5376 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3366, allocations: 0 / 0.5376 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.843e-05/0.3366, allocations: 5.234 kB / 0.5376 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3366, allocations: 0 / 0.5376 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.916e-06/0.3367, allocations: 5.094 kB / 0.5376 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3367, allocations: 0 / 0.5376 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3367, allocations: 3.938 kB / 0.5376 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001201/0.3368, allocations: 93.97 kB / 0.5377 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.202e-05/0.3369, allocations: 81.09 kB / 0.5377 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3369, allocations: 1.188 kB / 0.5377 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.142e-05/0.3369, allocations: 5.125 kB / 0.5377 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.3369, allocations: 5.188 kB / 0.5377 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.3369, allocations: 0 / 0.5377 GB, free: 7.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.402e-05/0.337, allocations: 76.56 kB / 0.5378 GB, free: 7.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.337, allocations: 0 / 0.5378 GB, free: 7.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004361/0.3374, allocations: 55.23 kB / 0.5379 GB, free: 7.855 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.002241/0.3397, allocations: 1.07 MB / 0.5389 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001361/0.3398, allocations: 64.77 kB / 0.539 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3398, allocations: 0 / 0.539 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.357e-05/0.3399, allocations: 58.72 kB / 0.539 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.34, allocations: 7.781 kB / 0.539 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.3405, allocations: 133.1 kB / 0.5392 GB, free: 6.711 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.3409, allocations: 0.674 MB / 0.5398 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.3409, allocations: 0 / 0.5398 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.3409, allocations: 9.562 kB / 0.5398 GB, free: 6.004 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3409, allocations: 0 / 0.5398 GB, free: 6.004 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.3648, allocations: 3.046 MB / 0.5428 GB, free: 4.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.233/8.598, allocations: 11.33 kB / 0.5428 GB, free: 4.453 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1)