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.001173/0.001173, allocations: 98.41 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 203.5 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 45.92 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003193, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1274, allocations: 63.47 MB / 481.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0007022/0.1282, allocations: 218.9 kB / 481.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.13, allocations: 1.022 MB / 482.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.664e-05/0.13, allocations: 0 / 482.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.1301, allocations: 0 / 482.8 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.1301, allocations: 0 / 482.8 MB, free: 4.027 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 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.001573/0.1317, allocations: 0.6037 MB / 483.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.295e-05/0.1317, allocations: 0 / 483.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.725e-05/0.1318, allocations: 8 kB / 483.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.018e-05/0.1318, allocations: 0 / 483.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.121e-05/0.1318, allocations: 0 / 483.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1318, allocations: 4 kB / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008414/0.1327, allocations: 0.5265 MB / 483.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-06/0.1327, allocations: 4 kB / 483.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.144e-05/0.1328, allocations: 25.7 kB / 483.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004138/0.1332, allocations: 271.6 kB / 484.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1332, allocations: 4 kB / 484.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1332, allocations: 0 / 484.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1332, allocations: 0 / 484.2 MB, free: 2.582 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.0004144/0.1336, allocations: 393.3 kB / 484.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1337, allocations: 15.91 kB / 484.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.01e-05/0.1337, allocations: 30.56 kB / 484.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.055e-05/0.1337, allocations: 0 / 484.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.228e-05/0.1338, allocations: 171 kB / 484.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.1339, allocations: 0 / 484.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.413e-06/0.1339, allocations: 0 / 484.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.072e-05/0.134, allocations: 33.7 kB / 484.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.134, allocations: 3.984 kB / 484.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.134, allocations: 0 / 484.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.134, allocations: 0 / 484.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2e-05/0.134, allocations: 3.984 kB / 484.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.1342, allocations: 149.6 kB / 485 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.045e-05/0.1342, allocations: 22.55 kB / 485 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.552e-06/0.1342, allocations: 4 kB / 485 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.341e-05/0.1343, allocations: 56.27 kB / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.1343, allocations: 0 / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001738/0.1345, allocations: 67.45 kB / 485.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1346, allocations: 81.05 kB / 485.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.372e-05/0.1346, allocations: 93.86 kB / 485.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.1346, allocations: 25.7 kB / 485.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.1347, allocations: 84.2 kB / 485.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.1347, allocations: 4 kB / 485.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.1347, allocations: 0 / 485.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1348, allocations: 310.8 kB / 485.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.354e-06/0.1348, allocations: 0 / 485.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-06/0.1348, allocations: 4 kB / 485.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.17e-05/0.1349, allocations: 33.69 kB / 485.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1349, allocations: 3.953 kB / 485.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.934e-05/0.135, allocations: 59.41 kB / 485.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.135, allocations: 33.8 kB / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.135, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.426e-06/0.135, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.135, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.135, allocations: 4 kB / 485.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.659e-05/0.1351, allocations: 7.922 kB / 485.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.1351, allocations: 0 / 485.9 MB, free: 0.6562 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 9.019e-05/0.1352, allocations: 135.5 kB / 486 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.1352, allocations: 3.953 kB / 486 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.276e-06/0.1352, allocations: 7.125 kB / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.1352, allocations: 0 / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1352, allocations: 0 / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1352, allocations: 0 / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.143e-05/0.1353, allocations: 157.6 kB / 486.2 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1353, allocations: 0 / 486.2 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.094e-06/0.1353, allocations: 3.953 kB / 486.2 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.1353, allocations: 0 / 486.2 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.1353, allocations: 4 kB / 486.2 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1353, allocations: 0 / 486.2 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1354, allocations: 0 / 486.2 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.846e-05/0.1354, allocations: 98.73 kB / 486.3 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.1355, allocations: 77.11 kB / 486.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.1355, allocations: 3.953 kB / 486.3 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.001e-05/0.1355, allocations: 4 kB / 486.3 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.999e-05/0.1356, allocations: 7.922 kB / 486.3 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.1356, allocations: 0 / 486.3 MB, free: 60 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.737e-05/0.1356, allocations: 75.28 kB / 486.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1356, allocations: 7.969 kB / 486.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003776/0.136, allocations: 87.97 kB / 486.5 MB, free: 15.89 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 (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.00107/0.1371, allocations: 0.8905 MB / 487.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.773e-05/0.1372, allocations: 59.41 kB / 487.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1372, allocations: 0 / 487.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.011e-05/0.1372, allocations: 63.34 kB / 487.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.126e-05/0.1373, allocations: 3.953 kB / 487.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.1377, allocations: 144.3 kB / 487.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.1379, allocations: 0.6731 MB / 488.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.204e-05/0.1379, allocations: 3.984 kB / 488.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.411e-05/0.138, allocations: 7.562 kB / 488.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.138, allocations: 4 kB / 488.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.1531, allocations: 3.836 MB / 492.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/0.1532, allocations: 214.2 kB / 492.4 MB, free: 9.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.036, allocations: 0 / 492.4 MB, free: 9.992 MB / 366.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat does not exist to compare? outputFormat=mat