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.0007867/0.0007867, allocations: 94.97 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008753/0.0008754, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246 MB, free: 11.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 45.92 MB / 344.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002771, allocations: 12 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1283, allocations: 63.47 MB / 481.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0006007/0.1289, allocations: 218.9 kB / 481.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.1307, allocations: 1.081 MB / 482.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.857e-05/0.1307, allocations: 0 / 482.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.38e-05/0.1308, allocations: 0 / 482.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.313e-06/0.1308, allocations: 0 / 482.9 MB, free: 3.98 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.001569/0.1324, allocations: 0.6233 MB / 483.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.723e-05/0.1324, allocations: 4 kB / 483.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.641e-05/0.1325, allocations: 0 / 483.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.37e-05/0.1325, allocations: 0 / 483.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.713e-05/0.1325, allocations: 0 / 483.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-06/0.1325, allocations: 0 / 483.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003155/0.1357, allocations: 2.242 MB / 485.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.133e-06/0.1357, allocations: 0 / 485.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.14e-05/0.1357, allocations: 25.7 kB / 485.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.1362, allocations: 319.6 kB / 486.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1362, allocations: 0 / 486.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1362, allocations: 0 / 486.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.1362, allocations: 0 / 486.1 MB, free: 0.7695 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.0004398/0.1366, allocations: 393.3 kB / 486.5 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.1367, allocations: 12.03 kB / 486.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.1367, allocations: 38.5 kB / 486.6 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.1368, allocations: 0 / 486.6 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.1369, allocations: 163 kB / 486.7 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1369, allocations: 4 kB / 486.7 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.1369, allocations: 4 kB / 486.7 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.847e-05/0.137, allocations: 29.69 kB / 486.8 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.137, allocations: 0 / 486.8 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.137, allocations: 4 kB / 486.8 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.137, allocations: 0 / 486.8 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.1371, allocations: 4 kB / 486.8 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.1372, allocations: 145.6 kB / 486.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.055e-05/0.1373, allocations: 26.53 kB / 486.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.402e-05/0.1373, allocations: 4.859 kB / 486.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.1373, allocations: 4 kB / 486.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.47e-05/0.1373, allocations: 56.33 kB / 487 MB, free: 15.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.1374, allocations: 8 kB / 487 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001788/0.1375, allocations: 55.41 kB / 487.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.1376, allocations: 92.97 kB / 487.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.481e-05/0.1376, allocations: 89.86 kB / 487.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.1377, allocations: 25.7 kB / 487.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.852e-05/0.1377, allocations: 80.14 kB / 487.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.1377, allocations: 7.938 kB / 487.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.744e-06/0.1377, allocations: 0 / 487.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1379, allocations: 311 kB / 487.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.096e-05/0.1379, allocations: 8 kB / 487.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.378e-06/0.1379, allocations: 0 / 487.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.93e-05/0.1379, allocations: 29.66 kB / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1379, allocations: 0 / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.765e-05/0.138, allocations: 63.39 kB / 487.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.138, allocations: 29.7 kB / 487.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.138, allocations: 0 / 487.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.1381, allocations: 4 kB / 487.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-06/0.1381, allocations: 0 / 487.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1381, allocations: 8.031 kB / 487.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.1381, allocations: 0 / 487.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.1381, allocations: 0 / 487.8 MB, free: 14.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.579e-05/0.1382, allocations: 143.5 kB / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.884e-06/0.1382, allocations: 3.984 kB / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.535e-06/0.1382, allocations: 3.125 kB / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1382, allocations: 0 / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1382, allocations: 0 / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1382, allocations: 0 / 487.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.931e-05/0.1383, allocations: 153.7 kB / 488.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1383, allocations: 3.953 kB / 488.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1384, allocations: 0 / 488.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1384, allocations: 0 / 488.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.1384, allocations: 3.984 kB / 488.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1384, allocations: 0 / 488.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1384, allocations: 0 / 488.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1385, allocations: 90.75 kB / 488.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.1385, allocations: 89.08 kB / 488.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.1386, allocations: 4 kB / 488.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.301e-05/0.1386, allocations: 4 kB / 488.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.1386, allocations: 7.875 kB / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.1386, allocations: 0 / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.325e-05/0.1386, allocations: 79.28 kB / 488.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1386, allocations: 0 / 488.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.139, allocations: 67.98 kB / 488.4 MB, free: 14.09 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.001777/0.1408, allocations: 1.032 MB / 489.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.141, allocations: 59.41 kB / 489.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.141, allocations: 4 kB / 489.5 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.111e-05/0.141, allocations: 55.34 kB / 489.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.1412, allocations: 6.812 kB / 489.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003424/0.1415, allocations: 136.3 kB / 489.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.1418, allocations: 0.6692 MB / 490.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.634e-06/0.1419, allocations: 4 kB / 490.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.437e-05/0.1419, allocations: 15.56 kB / 490.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1419, allocations: 0 / 490.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.1602, allocations: 3.31 MB / 493.7 MB, free: 8.824 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.1604, allocations: 223.1 kB / 493.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/1.991, allocations: 0 / 493.9 MB, free: 8.574 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