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.001481/0.001481, allocations: 104.1 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.001392/0.001392, 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.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.48 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.2336/0.2336, 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.002305/0.002305, allocations: 80.55 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1303, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001729/0.1321, allocations: 491.7 kB / 480.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.1341, allocations: 1.146 MB / 481.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.575e-05/0.1341, allocations: 7.938 kB / 481.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.286e-05/0.1341, allocations: 0 / 481.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.238e-06/0.1341, allocations: 0 / 481.8 MB, free: 3.473 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.002543/0.1367, allocations: 0.6779 MB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.504e-05/0.1367, allocations: 8 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.1368, allocations: 3.938 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.459e-05/0.1368, allocations: 4 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.287e-05/0.1368, allocations: 0 / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-06/0.1368, allocations: 0 / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003169/0.14, allocations: 2.445 MB / 485 MB, free: 356 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/0.14, allocations: 4 kB / 485 MB, free: 352 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.1401, allocations: 4 kB / 485 MB, free: 348 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004786/0.1405, allocations: 351.6 kB / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1406, allocations: 3.938 kB / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1406, allocations: 0 / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1406, allocations: 0 / 485.3 MB, free: 15.99 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.0004783/0.1411, allocations: 381 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1411, allocations: 8.031 kB / 485.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.1412, allocations: 30.56 kB / 485.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.1412, allocations: 0 / 485.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.1413, allocations: 163.1 kB / 485.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1413, allocations: 7.938 kB / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-06/0.1413, allocations: 0 / 485.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.1415, allocations: 33.64 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1415, allocations: 0 / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.1415, allocations: 8 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1415, allocations: 0 / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.1415, allocations: 7.938 kB / 486 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001477/0.1417, allocations: 149.6 kB / 486.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.62e-05/0.1417, allocations: 18.61 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.504e-05/0.1418, allocations: 4.859 kB / 486.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-06/0.1418, allocations: 0 / 486.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.363e-05/0.1418, allocations: 68.27 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 4.198e-06/0.1418, allocations: 0 / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001789/0.142, allocations: 67.33 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1421, allocations: 81.11 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.545e-05/0.1422, allocations: 89.86 kB / 486.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1422, allocations: 25.7 kB / 486.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.1422, allocations: 84.12 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.1423, allocations: 0 / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.1423, allocations: 21.84 kB / 486.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1424, allocations: 310.8 kB / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.709e-06/0.1424, allocations: 0 / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.009e-05/0.1425, allocations: 0 / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.598e-05/0.1425, allocations: 72.19 kB / 486.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1425, 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.762e-05/0.1426, allocations: 67.39 kB / 487 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.1426, allocations: 29.7 kB / 487 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1427, allocations: 4.094 kB / 487 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1427, allocations: 0 / 487 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.985e-06/0.1427, allocations: 4 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.1427, allocations: 3.984 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.1427, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1427, 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 9.165e-05/0.1428, allocations: 139.5 kB / 487.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.1428, allocations: 0 / 487.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.115e-06/0.1429, allocations: 3.125 kB / 487.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1429, allocations: 4 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.1429, allocations: 0 / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1429, allocations: 3.938 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.143, allocations: 153.6 kB / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.143, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.143, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.143, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.143, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.143, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.143, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.1431, allocations: 98.77 kB / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/0.1432, allocations: 85.02 kB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.1432, allocations: 3.938 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-06/0.1432, allocations: 7.938 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.159e-05/0.1433, allocations: 0 / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.1433, allocations: 0 / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.777e-05/0.1433, allocations: 75.28 kB / 487.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1433, allocations: 0 / 487.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003701/0.1437, allocations: 55.95 kB / 487.7 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.002217/0.1459, allocations: 1.061 MB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.837e-05/0.146, allocations: 59.41 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.146, allocations: 4 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.703e-05/0.1461, allocations: 51.41 kB / 488.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1462, allocations: 7.984 kB / 488.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004141/0.1466, allocations: 146.6 kB / 489 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.147, allocations: 0.669 MB / 489.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.147, allocations: 0 / 489.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.451e-05/0.147, allocations: 7.438 kB / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.147, allocations: 0 / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.1738, allocations: 3.032 MB / 492.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.218/8.392, allocations: 12.78 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1)