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.001425/0.001426, allocations: 95.2 kB / 16.98 MB, free: 6.398 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.001674/0.001674, allocations: 183.8 kB / 17.87 MB, free: 5.957 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.429/1.429, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2107/0.2107, allocations: 44.22 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003157, allocations: 8.844 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1151, allocations: 61.93 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005492/0.1157, allocations: 210.9 kB / 471.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.1175, allocations: 1.029 MB / 472.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.608e-05/0.1175, allocations: 0 / 472.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.147e-05/0.1175, allocations: 0 / 472.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.538e-06/0.1175, allocations: 0 / 472.8 MB, free: 12.4 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.001423/0.119, allocations: 0.6063 MB / 473.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.87e-05/0.119, allocations: 4 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.147e-05/0.119, allocations: 4 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.353e-05/0.1191, allocations: 4 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.593e-05/0.1191, allocations: 0 / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-06/0.1191, allocations: 0 / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007953/0.1199, allocations: 0.5226 MB / 473.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.1199, allocations: 4 kB / 473.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.092e-05/0.12, allocations: 25.7 kB / 473.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.1203, allocations: 279.5 kB / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1203, allocations: 0 / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1203, allocations: 0 / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.1204, allocations: 0 / 474.2 MB, free: 10.95 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.0003893/0.1207, allocations: 393.3 kB / 474.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1208, allocations: 8.031 kB / 474.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.219e-05/0.1208, allocations: 30.56 kB / 474.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.08e-05/0.1209, allocations: 0 / 474.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.121, allocations: 171 kB / 474.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.121, allocations: 3.938 kB / 474.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.507e-06/0.121, allocations: 3.953 kB / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.395e-05/0.1211, allocations: 33.69 kB / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.93e-06/0.1211, allocations: 0 / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.1211, allocations: 0 / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1211, allocations: 0 / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.536e-05/0.1211, allocations: 0 / 474.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1213, allocations: 145.7 kB / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.179e-05/0.1213, allocations: 26.55 kB / 475 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.1214, allocations: 3.984 kB / 475 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.623e-05/0.1214, allocations: 68.14 kB / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1214, allocations: 0 / 475.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001716/0.1216, allocations: 63.47 kB / 475.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.1217, allocations: 77.11 kB / 475.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.195e-05/0.1217, allocations: 93.98 kB / 475.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.1218, allocations: 29.7 kB / 475.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.4e-05/0.1218, allocations: 80.14 kB / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.1218, allocations: 0 / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-06/0.1218, allocations: 0 / 475.4 MB, free: 9.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.122, allocations: 314.8 kB / 475.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.138e-05/0.122, allocations: 3.938 kB / 475.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.773e-06/0.1221, allocations: 7.938 kB / 475.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.318e-05/0.1221, allocations: 29.7 kB / 475.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1221, allocations: 4.062 kB / 475.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.734e-05/0.1222, allocations: 59.41 kB / 475.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.1222, allocations: 33.69 kB / 475.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1222, allocations: 0 / 475.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1223, allocations: 3.953 kB / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.703e-06/0.1223, allocations: 0 / 475.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1223, allocations: 4 kB / 475.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.421e-05/0.1223, allocations: 0 / 475.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1223, allocations: 0 / 475.9 MB, free: 9.031 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 0.000115/0.1224, allocations: 140.1 kB / 476 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.162e-06/0.1224, allocations: 0 / 476 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.767e-05/0.1225, allocations: 11.08 kB / 476 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1225, allocations: 3.953 kB / 476 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1225, allocations: 0 / 476 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1225, allocations: 3.984 kB / 476 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1226, allocations: 145.7 kB / 476.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1226, allocations: 3.938 kB / 476.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1226, allocations: 0 / 476.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1226, allocations: 0 / 476.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.1226, allocations: 4 kB / 476.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1226, allocations: 0 / 476.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.1226, allocations: 7.953 kB / 476.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.1228, allocations: 94.73 kB / 476.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.1228, allocations: 77.11 kB / 476.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.1228, allocations: 0 / 476.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.115e-05/0.1228, allocations: 4 kB / 476.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.1229, allocations: 12 kB / 476.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.1229, allocations: 3.953 kB / 476.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.441e-05/0.1229, allocations: 75.28 kB / 476.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1229, allocations: 3.938 kB / 476.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000405/0.1233, allocations: 83.98 kB / 476.5 MB, free: 8.262 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.001105/0.1244, allocations: 0.9025 MB / 477.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001153/0.1246, allocations: 59.41 kB / 477.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1246, allocations: 0 / 477.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.939e-05/0.1246, allocations: 59.39 kB / 477.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.352e-05/0.1247, allocations: 4 kB / 477.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003556/0.1251, allocations: 144.4 kB / 477.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.1253, allocations: 0.6809 MB / 478.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.931e-06/0.1253, allocations: 0 / 478.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.35e-05/0.1254, allocations: 7.438 kB / 478.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1254, allocations: 0 / 478.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.143, allocations: 3.847 MB / 482.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.1432, allocations: 210.8 kB / 482.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/1.963, allocations: 0 / 482.4 MB, free: 2.363 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