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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 118.6 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00206/0.00206, allocations: 206.6 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2397/0.2397, allocations: 46.92 MB / 357.7 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002437/0.002437, allocations: 84.16 kB / 0.4917 GB, free: 7.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.134, allocations: 66.03 MB / 0.5561 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001631/0.1356, allocations: 0.4892 MB / 0.5566 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.1377, allocations: 1.161 MB / 0.5578 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.1377, allocations: 0 / 0.5578 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.168e-05/0.1377, allocations: 0 / 0.5578 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.641e-06/0.1377, allocations: 0 / 0.5578 GB, free: 3.91 MB / 414.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.002066/0.1398, allocations: 0.6813 MB / 0.5584 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.656e-05/0.1398, allocations: 0 / 0.5584 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.849e-05/0.1399, allocations: 15.94 kB / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.477e-05/0.1399, allocations: 0 / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.575e-05/0.1399, allocations: 0 / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.11e-06/0.1399, allocations: 4 kB / 0.5584 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003088/0.143, allocations: 2.445 MB / 0.5608 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.215e-05/0.143, allocations: 3.984 kB / 0.5608 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.221e-05/0.143, allocations: 8 kB / 0.5608 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.1435, allocations: 355.4 kB / 0.5612 GB, free: 420 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1435, allocations: 3.938 kB / 0.5612 GB, free: 416 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1435, allocations: 0 / 0.5612 GB, free: 416 kB / 414.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.1435, allocations: 0 / 0.5612 GB, free: 416 kB / 414.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.0004808/0.144, allocations: 380.7 kB / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.144, allocations: 12.03 kB / 0.5616 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.1441, allocations: 30.56 kB / 0.5616 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.426e-05/0.1441, allocations: 0 / 0.5616 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.1442, allocations: 163.1 kB / 0.5617 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1442, allocations: 4 kB / 0.5617 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.1442, allocations: 7.875 kB / 0.5618 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.644e-05/0.1443, allocations: 29.7 kB / 0.5618 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.1443, allocations: 0 / 0.5618 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.1443, allocations: 7.938 kB / 0.5618 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.1443, allocations: 0 / 0.5618 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.177e-05/0.1444, allocations: 11.94 kB / 0.5618 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.1445, allocations: 145.7 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.773e-05/0.1446, allocations: 22.61 kB / 0.562 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.789e-05/0.1446, allocations: 8.797 kB / 0.562 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.1446, allocations: 3.984 kB / 0.562 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.525e-05/0.1447, allocations: 56.27 kB / 0.562 GB, free: 15.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1447, allocations: 4 kB / 0.562 GB, free: 15.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001995/0.1449, allocations: 71.39 kB / 0.5621 GB, free: 15.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.1449, allocations: 81.11 kB / 0.5622 GB, free: 15.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.049e-05/0.145, allocations: 93.81 kB / 0.5623 GB, free: 15.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.145, allocations: 25.7 kB / 0.5623 GB, free: 15.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.145, allocations: 80.14 kB / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.1451, allocations: 0 / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.1451, allocations: 13.72 kB / 0.5624 GB, free: 14.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1453, allocations: 319 kB / 0.5627 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-06/0.1453, allocations: 0 / 0.5627 GB, free: 14.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.1453, allocations: 0 / 0.5627 GB, free: 14.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.97e-05/0.1453, allocations: 64.25 kB / 0.5627 GB, free: 14.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1453, allocations: 0 / 0.5627 GB, free: 14.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.094e-05/0.1454, allocations: 71.28 kB / 0.5628 GB, free: 14.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.1454, allocations: 29.7 kB / 0.5628 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1455, allocations: 0 / 0.5628 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1455, allocations: 96 / 0.5628 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1455, allocations: 4 kB / 0.5628 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1455, allocations: 4 kB / 0.5628 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.1455, allocations: 0 / 0.5628 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.1455, allocations: 3.984 kB / 0.5628 GB, free: 14.41 MB / 430.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 0.000115/0.1456, allocations: 131.5 kB / 0.563 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.1456, allocations: 7.938 kB / 0.563 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.295e-05/0.1456, allocations: 3.125 kB / 0.563 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1456, allocations: 0 / 0.563 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1456, allocations: 3.938 kB / 0.563 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1457, allocations: 4 kB / 0.563 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.1458, allocations: 149.7 kB / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1458, allocations: 3.938 kB / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-07/0.1458, allocations: 0 / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-06/0.1458, allocations: 0 / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1458, allocations: 0 / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1458, allocations: 0 / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1458, allocations: 0 / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001071/0.1459, allocations: 102.7 kB / 0.5632 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.697e-05/0.146, allocations: 85.05 kB / 0.5633 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.146, allocations: 0 / 0.5633 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.342e-05/0.146, allocations: 8 kB / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.146, allocations: 0 / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.146, allocations: 0 / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.164e-05/0.146, allocations: 75.28 kB / 0.5634 GB, free: 13.74 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.146, allocations: 0 / 0.5634 GB, free: 13.74 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003832/0.1464, allocations: 55.73 kB / 0.5635 GB, free: 13.68 MB / 430.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.001915/0.1483, allocations: 1.061 MB / 0.5645 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001188/0.1484, allocations: 59.41 kB / 0.5645 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1484, allocations: 3.938 kB / 0.5645 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.021e-05/0.1485, allocations: 55.41 kB / 0.5646 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.1486, allocations: 7.938 kB / 0.5646 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/0.149, allocations: 134.4 kB / 0.5647 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.1493, allocations: 0.6729 MB / 0.5654 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.152e-06/0.1493, allocations: 4.125 kB / 0.5654 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/0.1494, allocations: 7.438 kB / 0.5654 GB, free: 11.61 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1494, allocations: 0 / 0.5654 GB, free: 11.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02484/0.1742, allocations: 3.058 MB / 0.5684 GB, free: 8.629 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.271/8.445, allocations: 7.875 kB / 0.5684 GB, free: 8.621 MB / 430.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.425760672893375] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.513361176010221 8.533823881 8.386456922 Calling exit ...