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.001713/0.001713, allocations: 108.5 kB / 19.8 MB, free: 2.516 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.00217/0.00217, allocations: 216.7 kB / 23 MB, free: 5.609 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.438/1.438, allocations: 230.2 MB / 256.2 MB, free: 8.711 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.247/0.247, allocations: 46.89 MB / 359.4 MB, free: 5.023 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.003114/0.003114, allocations: 75.88 kB / 0.4941 GB, free: 9.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3567, allocations: 65.98 MB / 0.5586 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001568/0.3583, allocations: 497 kB / 0.559 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.3604, allocations: 1.17 MB / 0.5602 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.022e-05/0.3604, allocations: 0 / 0.5602 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.292e-05/0.3604, allocations: 0 / 0.5602 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.671e-06/0.3604, allocations: 0 / 0.5602 GB, free: 3.5 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.00196/0.3624, allocations: 0.6917 MB / 0.5608 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.362e-05/0.3624, allocations: 3.984 kB / 0.5608 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.457e-05/0.3624, allocations: 7.984 kB / 0.5609 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.397e-05/0.3625, allocations: 0 / 0.5609 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.664e-05/0.3625, allocations: 4 kB / 0.5609 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.681e-06/0.3625, allocations: 0 / 0.5609 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003095/0.3656, allocations: 2.462 MB / 0.5633 GB, free: 344 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-06/0.3656, allocations: 0 / 0.5633 GB, free: 344 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.3656, allocations: 0 / 0.5633 GB, free: 344 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.3661, allocations: 371.3 kB / 0.5636 GB, free: 15.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3661, allocations: 0 / 0.5636 GB, free: 15.97 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3661, allocations: 0 / 0.5636 GB, free: 15.97 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.3661, allocations: 4 kB / 0.5636 GB, free: 15.97 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.0004631/0.3666, allocations: 368.7 kB / 0.564 GB, free: 15.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3666, allocations: 12.03 kB / 0.564 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.027e-05/0.3667, allocations: 34.56 kB / 0.564 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.573e-05/0.3667, allocations: 0 / 0.564 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.3668, allocations: 163 kB / 0.5642 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.3668, allocations: 3.984 kB / 0.5642 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.3668, allocations: 7.922 kB / 0.5642 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.807e-05/0.3669, allocations: 33.64 kB / 0.5642 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.3669, allocations: 7.938 kB / 0.5642 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.3669, allocations: 0 / 0.5642 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3669, allocations: 0 / 0.5642 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.956e-05/0.367, allocations: 4 kB / 0.5642 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.3671, allocations: 141.7 kB / 0.5644 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.534e-05/0.3672, allocations: 26.5 kB / 0.5644 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.761e-05/0.3672, allocations: 12.89 kB / 0.5644 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.3672, allocations: 0 / 0.5644 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.3672, allocations: 60.27 kB / 0.5645 GB, free: 14.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3672, allocations: 0 / 0.5645 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001881/0.3674, allocations: 59.41 kB / 0.5645 GB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.3675, allocations: 81.09 kB / 0.5646 GB, free: 14.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.276e-05/0.3675, allocations: 97.81 kB / 0.5647 GB, free: 14.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.3676, allocations: 25.7 kB / 0.5647 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.301e-05/0.3676, allocations: 80.14 kB / 0.5648 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.3676, allocations: 12.06 kB / 0.5648 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.3676, allocations: 9.719 kB / 0.5648 GB, free: 14.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3678, allocations: 310.8 kB / 0.5651 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.418e-06/0.3678, allocations: 0 / 0.5651 GB, free: 14.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.943e-06/0.3678, allocations: 4 kB / 0.5651 GB, free: 14.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.502e-05/0.3678, allocations: 64.27 kB / 0.5652 GB, free: 14.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3678, allocations: 0 / 0.5652 GB, free: 14.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.104e-05/0.3679, allocations: 63.39 kB / 0.5652 GB, free: 14.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.3679, allocations: 37.73 kB / 0.5653 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3679, allocations: 0 / 0.5653 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.368, allocations: 0 / 0.5653 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.368, allocations: 0 / 0.5653 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.368, allocations: 3.938 kB / 0.5653 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.368, allocations: 0 / 0.5653 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.368, allocations: 0 / 0.5653 GB, free: 14 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.747e-05/0.3681, allocations: 139.5 kB / 0.5654 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.102e-05/0.3681, allocations: 7.938 kB / 0.5654 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.3681, allocations: 11.12 kB / 0.5654 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3681, allocations: 4 kB / 0.5654 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3681, allocations: 0 / 0.5654 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.3681, allocations: 0 / 0.5654 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.3682, allocations: 149.6 kB / 0.5656 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3682, allocations: 3.938 kB / 0.5656 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.3682, allocations: 0 / 0.5656 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.3682, allocations: 0 / 0.5656 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.3682, allocations: 7.984 kB / 0.5656 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.3682, allocations: 3.938 kB / 0.5656 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3682, allocations: 0 / 0.5656 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.625e-05/0.3683, allocations: 90.83 kB / 0.5657 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.3684, allocations: 85.05 kB / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.001e-05/0.3684, allocations: 0 / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.694e-06/0.3684, allocations: 0 / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.261e-05/0.3684, allocations: 3.938 kB / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.3684, allocations: 0 / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.897e-05/0.3685, allocations: 83.31 kB / 0.5658 GB, free: 13.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3685, allocations: 0 / 0.5658 GB, free: 13.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.3688, allocations: 55.73 kB / 0.5659 GB, free: 13.25 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.001858/0.3706, allocations: 1.062 MB / 0.5669 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.485e-05/0.3707, allocations: 55.41 kB / 0.567 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3707, allocations: 3.938 kB / 0.567 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.3708, allocations: 55.41 kB / 0.567 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.3709, allocations: 7.875 kB / 0.567 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003869/0.3713, allocations: 142.6 kB / 0.5672 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.3716, allocations: 0.6728 MB / 0.5678 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.3716, allocations: 0 / 0.5678 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.886e-05/0.3716, allocations: 11.44 kB / 0.5678 GB, free: 11.18 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3716, allocations: 0 / 0.5678 GB, free: 11.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.3955, allocations: 3.05 MB / 0.5708 GB, free: 8.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.39, allocations: 14.81 kB / 0.5708 GB, free: 8.172 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.194936025014613] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.459606273012469 8.474724975 8.105751175 Calling exit ...