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.001237/0.001237, allocations: 115 kB / 18.45 MB, free: 4.641 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.001303/0.001303, allocations: 206.5 kB / 21.41 MB, free: 1.684 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.426/1.426, allocations: 227.4 MB / 251.7 MB, free: 104 kB / 190.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.2233/0.2233, allocations: 46.15 MB / 351.1 MB, free: 14.41 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.002237/0.002237, allocations: 82.98 kB / 489.6 MB, free: 28.4 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1188, allocations: 62.44 MB / 0.5391 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001595/0.1205, allocations: 487.1 kB / 0.5396 GB, free: 4.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.1225, allocations: 1.147 MB / 0.5407 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.758e-05/0.1225, allocations: 4 kB / 0.5407 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.405e-05/0.1225, allocations: 0 / 0.5407 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.1225, allocations: 7.938 kB / 0.5407 GB, free: 3.184 MB / 398.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.001862/0.1244, allocations: 0.6832 MB / 0.5414 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.733e-05/0.1245, allocations: 0 / 0.5414 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.544e-05/0.1245, allocations: 0 / 0.5414 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.213e-05/0.1245, allocations: 3.938 kB / 0.5414 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.441e-05/0.1245, allocations: 7.984 kB / 0.5414 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-06/0.1245, allocations: 0 / 0.5414 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002986/0.1275, allocations: 2.445 MB / 0.5438 GB, free: 48 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-06/0.1275, allocations: 3.984 kB / 0.5438 GB, free: 44 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.162e-05/0.1276, allocations: 4 kB / 0.5438 GB, free: 40 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004461/0.128, allocations: 363.5 kB / 0.5442 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.128, allocations: 0 / 0.5442 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.128, allocations: 0 / 0.5442 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1281, allocations: 0 / 0.5442 GB, free: 15.68 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.0004451/0.1285, allocations: 384.7 kB / 0.5445 GB, free: 15.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1285, allocations: 8.031 kB / 0.5445 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.842e-05/0.1286, allocations: 30.56 kB / 0.5446 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.032e-05/0.1286, allocations: 0 / 0.5446 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.1287, allocations: 159.1 kB / 0.5447 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.1287, allocations: 0 / 0.5447 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.1288, allocations: 15.78 kB / 0.5447 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.034e-05/0.1288, allocations: 25.7 kB / 0.5448 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1289, allocations: 0 / 0.5448 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-06/0.1289, allocations: 0 / 0.5448 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.1289, allocations: 4 kB / 0.5448 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.651e-05/0.1289, allocations: 3.984 kB / 0.5448 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.129, allocations: 145.7 kB / 0.5449 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.538e-05/0.1291, allocations: 22.55 kB / 0.5449 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.621e-05/0.1291, allocations: 20.73 kB / 0.5449 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.1291, allocations: 0 / 0.5449 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.1292, allocations: 56.27 kB / 0.545 GB, free: 14.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.1292, allocations: 0 / 0.545 GB, free: 14.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000156/0.1294, allocations: 67.45 kB / 0.5451 GB, free: 14.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.1294, allocations: 81.11 kB / 0.5451 GB, free: 14.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.617e-05/0.1295, allocations: 93.81 kB / 0.5452 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.1295, allocations: 29.83 kB / 0.5453 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.172e-05/0.1295, allocations: 80.14 kB / 0.5453 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.274e-05/0.1295, allocations: 0 / 0.5453 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.1296, allocations: 13.72 kB / 0.5453 GB, free: 14.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1297, allocations: 314.8 kB / 0.5456 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.1297, allocations: 3.938 kB / 0.5457 GB, free: 13.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.598e-06/0.1297, allocations: 0 / 0.5457 GB, free: 13.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.744e-05/0.1298, allocations: 68.33 kB / 0.5457 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1298, allocations: 0 / 0.5457 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.964e-05/0.1299, allocations: 63.34 kB / 0.5458 GB, free: 13.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.1299, allocations: 33.69 kB / 0.5458 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.1299, allocations: 3.938 kB / 0.5458 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.1299, allocations: 0 / 0.5458 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.13, allocations: 0 / 0.5458 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.13, allocations: 4 kB / 0.5458 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.557e-05/0.13, allocations: 3.938 kB / 0.5458 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.13, allocations: 0 / 0.5458 GB, free: 13.7 MB / 414.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.697e-05/0.1301, allocations: 147.5 kB / 0.546 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.1301, allocations: 3.938 kB / 0.546 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.092e-05/0.1301, allocations: 7.125 kB / 0.546 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1301, allocations: 7.969 kB / 0.546 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1301, allocations: 0 / 0.546 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1301, allocations: 0 / 0.546 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.1303, allocations: 145.7 kB / 0.5461 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1303, allocations: 3.938 kB / 0.5461 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1303, allocations: 0 / 0.5461 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.1303, allocations: 0 / 0.5461 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.1303, allocations: 4 kB / 0.5461 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1303, allocations: 3.938 kB / 0.5461 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.1303, allocations: 0 / 0.5461 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.435e-05/0.1304, allocations: 90.83 kB / 0.5462 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.1304, allocations: 81.05 kB / 0.5463 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.1305, allocations: 3.984 kB / 0.5463 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.012e-05/0.1305, allocations: 4 kB / 0.5463 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.1305, allocations: 4.031 kB / 0.5463 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-06/0.1305, allocations: 0 / 0.5463 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.119e-05/0.1305, allocations: 79.22 kB / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1306, allocations: 0 / 0.5464 GB, free: 13.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.1309, allocations: 51.8 kB / 0.5464 GB, free: 12.96 MB / 414.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.001921/0.1328, allocations: 1.062 MB / 0.5475 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.1329, allocations: 59.39 kB / 0.5475 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1329, allocations: 0 / 0.5475 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.152e-05/0.133, allocations: 71.34 kB / 0.5476 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1331, allocations: 4 kB / 0.5476 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003735/0.1335, allocations: 126.5 kB / 0.5477 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.1338, allocations: 0.6729 MB / 0.5484 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.072e-06/0.1338, allocations: 0 / 0.5484 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.622e-05/0.1339, allocations: 7.438 kB / 0.5484 GB, free: 10.9 MB / 414.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1339, allocations: 0 / 0.5484 GB, free: 10.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.1596, allocations: 3.054 MB / 0.5514 GB, free: 7.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.165/8.325, allocations: 7.328 kB / 0.5514 GB, free: 7.918 MB / 414.1 MB " [Timeout remaining time 652] (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.124363092938438] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.394150087144226 8.424317128 8.290770102 Calling exit ...