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.001603/0.001603, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001936/0.001936, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.474/1.474, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.2271/0.2271, allocations: 46.88 MB / 357.4 MB, free: 10.53 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.002218/0.002218, allocations: 83.86 kB / 0.4912 GB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1222, allocations: 65.98 MB / 0.5556 GB, free: 6.457 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001563/0.1238, allocations: 493 kB / 0.5561 GB, free: 5.969 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.1258, allocations: 1.161 MB / 0.5572 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.833e-05/0.1258, allocations: 0 / 0.5572 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.1258, allocations: 0 / 0.5572 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.598e-06/0.1258, allocations: 0 / 0.5572 GB, free: 4.801 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.002015/0.1278, allocations: 0.682 MB / 0.5579 GB, free: 4.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.022e-05/0.1279, allocations: 4 kB / 0.5579 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.876e-05/0.1279, allocations: 0 / 0.5579 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.292e-05/0.1279, allocations: 4 kB / 0.5579 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.414e-05/0.1279, allocations: 0 / 0.5579 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.1279, allocations: 3.938 kB / 0.5579 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003095/0.131, allocations: 2.457 MB / 0.5603 GB, free: 1.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.131, allocations: 0 / 0.5603 GB, free: 1.652 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.083e-05/0.1311, allocations: 4 kB / 0.5603 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.1315, allocations: 359.4 kB / 0.5607 GB, free: 1.297 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1315, allocations: 0 / 0.5607 GB, free: 1.297 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1315, allocations: 0 / 0.5607 GB, free: 1.297 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1315, allocations: 0 / 0.5607 GB, free: 1.297 MB / 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.0004684/0.132, allocations: 388.5 kB / 0.561 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.132, allocations: 12.03 kB / 0.5611 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.125e-05/0.1321, allocations: 34.56 kB / 0.5611 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.397e-05/0.1321, allocations: 0 / 0.5611 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1322, allocations: 159.1 kB / 0.5612 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1322, allocations: 0 / 0.5612 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.1322, allocations: 7.938 kB / 0.5612 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.215e-05/0.1323, allocations: 25.7 kB / 0.5613 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.1323, allocations: 3.938 kB / 0.5613 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.603e-06/0.1323, allocations: 0 / 0.5613 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.1323, allocations: 0 / 0.5613 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.622e-05/0.1324, allocations: 7.984 kB / 0.5613 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.1325, allocations: 153.6 kB / 0.5614 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.855e-05/0.1326, allocations: 18.61 kB / 0.5614 GB, free: 344 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.44e-05/0.1326, allocations: 12.8 kB / 0.5615 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.1326, allocations: 0 / 0.5615 GB, free: 328 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/0.1326, allocations: 56.27 kB / 0.5615 GB, free: 256 kB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1326, allocations: 0 / 0.5615 GB, free: 256 kB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001699/0.1328, allocations: 75.39 kB / 0.5616 GB, free: 168 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.1329, allocations: 77.11 kB / 0.5617 GB, free: 72 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.274e-05/0.1329, allocations: 93.81 kB / 0.5617 GB, free: 15.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1329, allocations: 29.7 kB / 0.5618 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.045e-05/0.133, allocations: 80.14 kB / 0.5618 GB, free: 15.85 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.133, allocations: 0 / 0.5618 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/0.133, allocations: 9.719 kB / 0.5619 GB, free: 15.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1332, allocations: 322.8 kB / 0.5622 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.1332, allocations: 4.125 kB / 0.5622 GB, free: 15.51 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.41e-06/0.1332, allocations: 0 / 0.5622 GB, free: 15.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.506e-05/0.1332, allocations: 60.27 kB / 0.5622 GB, free: 15.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1332, allocations: 0 / 0.5622 GB, free: 15.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.338e-05/0.1333, allocations: 67.28 kB / 0.5623 GB, free: 15.36 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.632e-05/0.1334, allocations: 35.88 kB / 0.5623 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.1334, allocations: 0 / 0.5623 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1334, allocations: 4 kB / 0.5623 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1334, allocations: 0 / 0.5623 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1334, allocations: 4.094 kB / 0.5623 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.1334, allocations: 4 kB / 0.5623 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.1334, allocations: 0 / 0.5623 GB, free: 15.3 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 9.021e-05/0.1335, allocations: 135.5 kB / 0.5625 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.1335, allocations: 7.938 kB / 0.5625 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.116e-05/0.1335, allocations: 3.125 kB / 0.5625 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1335, allocations: 0 / 0.5625 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1335, allocations: 7.922 kB / 0.5625 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.1335, allocations: 0 / 0.5625 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.1336, allocations: 153.6 kB / 0.5626 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1336, allocations: 3.938 kB / 0.5626 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1336, allocations: 4 kB / 0.5626 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1337, allocations: 0 / 0.5626 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.1337, allocations: 0 / 0.5626 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.1337, allocations: 0 / 0.5626 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1337, allocations: 0 / 0.5626 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.1338, allocations: 98.75 kB / 0.5627 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.1338, allocations: 85.08 kB / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.1338, allocations: 0 / 0.5628 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.045e-05/0.1338, allocations: 3.984 kB / 0.5628 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.545e-05/0.1338, allocations: 4 kB / 0.5628 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1338, allocations: 0 / 0.5628 GB, free: 14.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.039e-05/0.1339, allocations: 75.28 kB / 0.5629 GB, free: 14.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1339, allocations: 0 / 0.5629 GB, free: 14.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.1342, allocations: 55.8 kB / 0.5629 GB, free: 14.57 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.001821/0.136, allocations: 1.059 MB / 0.564 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.1362, allocations: 67.33 kB / 0.564 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.1362, allocations: 0 / 0.564 GB, free: 13.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.676e-05/0.1362, allocations: 55.41 kB / 0.5641 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001173/0.1363, allocations: 3.938 kB / 0.5641 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.1367, allocations: 130.5 kB / 0.5642 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.137, allocations: 0.6729 MB / 0.5649 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.25e-06/0.137, allocations: 0 / 0.5649 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.443e-05/0.137, allocations: 11.56 kB / 0.5649 GB, free: 12.5 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.137, allocations: 0 / 0.5649 GB, free: 12.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.162, allocations: 3.066 MB / 0.5679 GB, free: 9.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.344/8.506, allocations: 1.969 kB / 0.5679 GB, free: 9.516 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 & /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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.424215448088944] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.5763746262528 8.603431554 8.467135164 Calling exit ...