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.001271/0.001271, allocations: 104.4 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.001341/0.001341, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2428/0.2428, allocations: 46.12 MB / 344.2 MB, free: 11.53 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.003944/0.003944, allocations: 81.33 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1277, allocations: 62.45 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001756/0.1295, allocations: 490.4 kB / 480.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.1316, allocations: 1.15 MB / 481.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.103e-05/0.1317, allocations: 0 / 481.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.1317, allocations: 0 / 481.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.649e-06/0.1317, allocations: 0 / 481.8 MB, free: 3.477 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 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.002131/0.1338, allocations: 0.6712 MB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.131e-05/0.1339, allocations: 8 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.704e-05/0.1339, allocations: 8 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.231e-05/0.134, allocations: 3.938 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.289e-05/0.134, allocations: 7.969 kB / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.1341, allocations: 0 / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003424/0.1375, allocations: 2.445 MB / 485 MB, free: 348 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.332e-05/0.1375, allocations: 3.984 kB / 485 MB, free: 344 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.74e-05/0.1376, allocations: 4 kB / 485 MB, free: 340 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.1381, allocations: 343.7 kB / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1381, allocations: 4 kB / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.715e-06/0.1381, allocations: 0 / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1381, allocations: 3.938 kB / 485.3 MB, free: 15.98 MB / 366.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.0006281/0.1387, allocations: 381 kB / 485.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.1388, allocations: 12.03 kB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.1389, allocations: 34.5 kB / 485.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.1389, allocations: 4 kB / 485.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.1391, allocations: 159.1 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.1391, allocations: 3.938 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1391, allocations: 0 / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.1393, allocations: 33.7 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1393, allocations: 0 / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.1393, allocations: 0 / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1393, allocations: 3.984 kB / 485.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.278e-05/0.1393, allocations: 8 kB / 486 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002282/0.1396, allocations: 149.6 kB / 486.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.925e-05/0.1396, allocations: 18.52 kB / 486.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.154e-05/0.1397, allocations: 4.859 kB / 486.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.1397, allocations: 4.094 kB / 486.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.632e-05/0.1398, allocations: 56.27 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.1398, allocations: 4 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000261/0.1401, allocations: 67.39 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/0.1402, allocations: 81.05 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.211e-05/0.1402, allocations: 93.8 kB / 486.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.1403, allocations: 25.7 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.1403, allocations: 80.14 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.1403, allocations: 0 / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.87e-05/0.1404, allocations: 21.66 kB / 486.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1406, allocations: 319 kB / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.134e-05/0.1406, allocations: 0 / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-06/0.1406, allocations: 4 kB / 486.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.244e-05/0.1407, allocations: 60.27 kB / 486.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1407, allocations: 3.938 kB / 486.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.685e-05/0.1408, allocations: 71.33 kB / 487 MB, free: 14.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.1408, allocations: 33.7 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1408, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1409, allocations: 4.094 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.1409, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1409, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.936e-05/0.1409, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.1409, allocations: 0 / 487 MB, free: 14 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.0001251/0.141, allocations: 139.5 kB / 487.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1411, allocations: 3.984 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.483e-05/0.1411, allocations: 7.109 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.1411, allocations: 0 / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1411, allocations: 4 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1411, allocations: 4 kB / 487.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.1412, allocations: 145.6 kB / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1413, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1413, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1413, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.1413, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1413, allocations: 4 kB / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1413, allocations: 3.984 kB / 487.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.1414, allocations: 94.72 kB / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.1415, allocations: 85.02 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.1415, allocations: 7.984 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-06/0.1415, allocations: 0 / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.1415, allocations: 0 / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1416, allocations: 3.938 kB / 487.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.1416, allocations: 75.28 kB / 487.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1416, allocations: 0 / 487.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004125/0.142, allocations: 51.92 kB / 487.6 MB, free: 13.28 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.002236/0.1443, allocations: 1.059 MB / 488.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.1444, allocations: 71.33 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1444, allocations: 0 / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.257e-05/0.1445, allocations: 55.41 kB / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.1446, allocations: 0 / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.145, allocations: 138.5 kB / 489 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.1453, allocations: 0.673 MB / 489.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.192e-06/0.1453, allocations: 0 / 489.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.1453, allocations: 15.42 kB / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1453, allocations: 0 / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.1708, allocations: 3.028 MB / 492.7 MB, free: 8.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.376, allocations: 7.984 kB / 492.7 MB, free: 8.219 MB / 366.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)