Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009605/0.0009603, allocations: 97.48 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000992/0.0009923, allocations: 189.4 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.2 MB / 241.9 MB, free: 14.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2359/0.2359, allocations: 44.22 MB / 337.2 MB, free: 2.547 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003855/0.0003857, allocations: 8 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1211, allocations: 61.92 MB / 471.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006507/0.1218, allocations: 214.9 kB / 471.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.1238, allocations: 1.08 MB / 472.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.1238, allocations: 0 / 472.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.1238, allocations: 0 / 472.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.105e-05/0.1238, allocations: 0 / 472.9 MB, free: 12.31 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0.0+maint.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.001608/0.1254, allocations: 0.6235 MB / 473.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.646e-05/0.1255, allocations: 0 / 473.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.1255, allocations: 4 kB / 473.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.1256, allocations: 0 / 473.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.773e-05/0.1256, allocations: 0 / 473.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.037e-06/0.1256, allocations: 4 kB / 473.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00287/0.1285, allocations: 2.238 MB / 475.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.233e-06/0.1285, allocations: 0 / 475.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.1285, allocations: 33.64 kB / 475.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.1289, allocations: 311.6 kB / 476.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1289, allocations: 4 kB / 476.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1289, allocations: 4 kB / 476.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.129, allocations: 0 / 476.1 MB, free: 9.094 MB / 350.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.0004177/0.1294, allocations: 389.3 kB / 476.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1294, allocations: 8.031 kB / 476.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.193e-05/0.1295, allocations: 34.56 kB / 476.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.312e-05/0.1295, allocations: 0 / 476.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.211e-05/0.1296, allocations: 159.1 kB / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.1296, allocations: 0 / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.1296, allocations: 3.953 kB / 476.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.23e-05/0.1297, allocations: 49.61 kB / 476.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1297, allocations: 0 / 476.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-06/0.1297, allocations: 0 / 476.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1298, allocations: 0 / 476.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.619e-05/0.1298, allocations: 0 / 476.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.1299, allocations: 145.7 kB / 476.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.397e-05/0.1299, allocations: 14.58 kB / 476.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.465e-05/0.13, allocations: 8.844 kB / 476.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.13, allocations: 8.094 kB / 476.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/0.13, allocations: 72.16 kB / 477 MB, free: 8.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.13, allocations: 0 / 477 MB, free: 8.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000141/0.1302, allocations: 59.41 kB / 477.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.1302, allocations: 81.09 kB / 477.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.276e-05/0.1303, allocations: 89.86 kB / 477.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.1303, allocations: 25.7 kB / 477.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.11e-05/0.1303, allocations: 88.2 kB / 477.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.258e-05/0.1303, allocations: 0 / 477.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-06/0.1304, allocations: 0 / 477.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.146e-05/0.1304, allocations: 318.8 kB / 477.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.8e-06/0.1305, allocations: 0 / 477.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.697e-06/0.1305, allocations: 0 / 477.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.256e-05/0.1305, allocations: 29.7 kB / 477.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-06/0.1305, allocations: 3.938 kB / 477.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.74e-05/0.1306, allocations: 59.39 kB / 477.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.1306, allocations: 37.8 kB / 477.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1306, allocations: 3.953 kB / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1306, allocations: 0 / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.1306, allocations: 0 / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.1306, allocations: 0 / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.659e-05/0.1307, allocations: 0 / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.229e-06/0.1307, allocations: 3.938 kB / 477.8 MB, free: 7.168 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.377e-05/0.1307, allocations: 140.1 kB / 477.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-06/0.1308, allocations: 0 / 477.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.027e-05/0.1308, allocations: 15.06 kB / 478 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1308, allocations: 7.953 kB / 478 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.1308, allocations: 3.984 kB / 478 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1308, allocations: 0 / 478 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.423e-05/0.1309, allocations: 141.7 kB / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1309, allocations: 0 / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1309, allocations: 0 / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.1309, allocations: 0 / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.1309, allocations: 7.984 kB / 478.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.1309, allocations: 0 / 478.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1309, allocations: 7.891 kB / 478.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.671e-05/0.131, allocations: 90.75 kB / 478.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.062e-05/0.131, allocations: 85.09 kB / 478.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-06/0.1311, allocations: 0 / 478.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-06/0.1311, allocations: 0 / 478.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.226e-05/0.1311, allocations: 3.953 kB / 478.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1311, allocations: 0 / 478.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.232e-05/0.1311, allocations: 79.28 kB / 478.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1311, allocations: 7.969 kB / 478.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.1315, allocations: 71.98 kB / 478.4 MB, free: 6.41 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001649/0.1331, allocations: 1.028 MB / 479.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.998e-05/0.1332, allocations: 59.41 kB / 479.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1332, allocations: 3.938 kB / 479.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.823e-05/0.1333, allocations: 59.39 kB / 479.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001129/0.1334, allocations: 3.875 kB / 479.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003013/0.1337, allocations: 152.4 kB / 479.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.1339, allocations: 0.6731 MB / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.158e-06/0.1339, allocations: 0 / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.246e-05/0.1339, allocations: 7.438 kB / 480.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of SimCode: time 1.303e-06/0.1339, allocations: 0 / 480.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01418/0.1481, allocations: 3.321 MB / 483.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.1484, allocations: 214.1 kB / 484 MB, free: 0.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/1.968, allocations: 0 / 484 MB, free: 0.918 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat does not exist to compare? outputFormat=mat