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.001691/0.001691, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002126/0.002126, allocations: 212 kB / 24.54 MB, free: 4.016 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.487/1.487, allocations: 230.5 MB / 258.2 MB, free: 8.051 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.254/0.254, allocations: 46.93 MB / 361.6 MB, free: 4.227 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.002301/0.002301, allocations: 87.84 kB / 0.497 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3267, allocations: 66.07 MB / 0.5615 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001666/0.3284, allocations: 493.1 kB / 0.562 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.3306, allocations: 1.173 MB / 0.5631 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.3306, allocations: 0 / 0.5631 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.3306, allocations: 11.94 kB / 0.5631 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.771e-06/0.3306, allocations: 3.938 kB / 0.5631 GB, free: 2.672 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.002268/0.3329, allocations: 0.7488 MB / 0.5639 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.798e-05/0.333, allocations: 11.97 kB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.786e-05/0.333, allocations: 8 kB / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.61e-05/0.333, allocations: 0 / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.793e-05/0.333, allocations: 0 / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.961e-06/0.333, allocations: 0 / 0.5639 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003546/0.3366, allocations: 2.503 MB / 0.5663 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.335e-06/0.3366, allocations: 0 / 0.5663 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.3366, allocations: 0 / 0.5663 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.3371, allocations: 371.3 kB / 0.5667 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3371, allocations: 4 kB / 0.5667 GB, free: 15.04 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3371, allocations: 0 / 0.5667 GB, free: 15.04 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.3371, allocations: 0 / 0.5667 GB, free: 15.04 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.0004308/0.3375, allocations: 295.6 kB / 0.567 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.3376, allocations: 8.031 kB / 0.567 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.314e-05/0.3376, allocations: 34.56 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.3376, allocations: 0 / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.3377, allocations: 105.2 kB / 0.5671 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.3378, allocations: 7.938 kB / 0.5671 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.3378, allocations: 3.938 kB / 0.5671 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.3379, allocations: 33.64 kB / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3379, allocations: 4 kB / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/0.3379, allocations: 0 / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3379, allocations: 0 / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.755e-05/0.3379, allocations: 0 / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.3381, allocations: 124.7 kB / 0.5673 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.144e-05/0.3381, allocations: 18.56 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.03e-05/0.3381, allocations: 12.8 kB / 0.5673 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-06/0.3381, allocations: 0 / 0.5673 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.666e-05/0.3382, allocations: 64.27 kB / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 6.61e-07/0.3382, allocations: 0 / 0.5674 GB, free: 14.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002059/0.3384, allocations: 63.41 kB / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.3385, allocations: 81.09 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.124e-05/0.3385, allocations: 93.81 kB / 0.5676 GB, free: 13.92 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.3386, allocations: 25.7 kB / 0.5676 GB, free: 13.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.783e-05/0.3386, allocations: 84.27 kB / 0.5677 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.3386, allocations: 3.984 kB / 0.5677 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.3387, allocations: 13.72 kB / 0.5677 GB, free: 13.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3389, allocations: 310.8 kB / 0.568 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.3389, allocations: 0 / 0.568 GB, free: 13.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.212e-06/0.3389, allocations: 0 / 0.568 GB, free: 13.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.339, allocations: 72.2 kB / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.339, allocations: 4.062 kB / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.353e-05/0.3391, allocations: 67.33 kB / 0.5681 GB, free: 13.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/0.3391, allocations: 29.7 kB / 0.5682 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3391, allocations: 0 / 0.5682 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3391, allocations: 4 kB / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.3391, allocations: 0 / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3391, allocations: 0 / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.756e-05/0.3392, allocations: 0 / 0.5682 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.3392, allocations: 0 / 0.5682 GB, free: 13.26 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 0.0001408/0.3393, allocations: 147.6 kB / 0.5683 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-06/0.3393, allocations: 3.938 kB / 0.5683 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.524e-05/0.3393, allocations: 3 kB / 0.5683 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.3393, allocations: 0 / 0.5683 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.3393, allocations: 3.984 kB / 0.5683 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3393, allocations: 0 / 0.5683 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.3395, allocations: 120.8 kB / 0.5684 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3395, allocations: 3.938 kB / 0.5684 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3395, allocations: 3.938 kB / 0.5684 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.3395, allocations: 3.938 kB / 0.5684 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.3395, allocations: 3.938 kB / 0.5684 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.3395, allocations: 8 kB / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3395, allocations: 0 / 0.5685 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.3396, allocations: 86.83 kB / 0.5685 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.3396, allocations: 7.938 kB / 0.5685 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.3397, allocations: 0 / 0.5685 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-06/0.3397, allocations: 0 / 0.5685 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.3397, allocations: 0 / 0.5685 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.3397, allocations: 4.031 kB / 0.5686 GB, free: 12.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.502e-05/0.3397, allocations: 75.28 kB / 0.5686 GB, free: 12.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3397, allocations: 4 kB / 0.5686 GB, free: 12.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003643/0.3401, allocations: 55.73 kB / 0.5687 GB, free: 12.65 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.002186/0.3423, allocations: 1.061 MB / 0.5697 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.3424, allocations: 55.41 kB / 0.5698 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3424, allocations: 0 / 0.5698 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.271e-05/0.3425, allocations: 59.47 kB / 0.5698 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.3426, allocations: 10.5 kB / 0.5698 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.343, allocations: 138.4 kB / 0.57 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.3434, allocations: 0.6728 MB / 0.5706 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.031e-06/0.3434, allocations: 0 / 0.5706 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.711e-05/0.3434, allocations: 11.44 kB / 0.5706 GB, free: 10.57 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3434, allocations: 0 / 0.5706 GB, free: 10.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.3693, allocations: 3.07 MB / 0.5736 GB, free: 7.562 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.351, allocations: 14.97 kB / 0.5736 GB, free: 7.555 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 & 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.365142160095274] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.4231922570616 8.454114867 8.111324093 Calling exit ...