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.001671/0.001671, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002038/0.002038, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.469/1.469, allocations: 230.5 MB / 258.2 MB, free: 8.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.2393/0.2393, allocations: 46.93 MB / 361.6 MB, free: 4.188 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.002361/0.002361, allocations: 79.86 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.3837, allocations: 66.08 MB / 0.5615 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001641/0.3853, allocations: 0.4965 MB / 0.562 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.3874, allocations: 1.177 MB / 0.5631 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.3874, allocations: 7.938 kB / 0.5631 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.286e-05/0.3874, allocations: 0 / 0.5631 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.3874, allocations: 0 / 0.5631 GB, free: 2.633 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.00208/0.3895, allocations: 0.7433 MB / 0.5639 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.446e-05/0.3896, allocations: 0 / 0.5639 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.3896, allocations: 8 kB / 0.5639 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.37e-05/0.3896, allocations: 0 / 0.5639 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.695e-05/0.3896, allocations: 3.984 kB / 0.5639 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-06/0.3896, allocations: 4 kB / 0.5639 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003407/0.393, allocations: 2.5 MB / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.393, allocations: 0 / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.3931, allocations: 8 kB / 0.5663 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004497/0.3935, allocations: 367.3 kB / 0.5667 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3935, allocations: 0 / 0.5667 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3935, allocations: 0 / 0.5667 GB, free: 15.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.3935, allocations: 0 / 0.5667 GB, free: 15.01 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.0004569/0.394, allocations: 299.6 kB / 0.567 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.394, allocations: 8.031 kB / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.3941, allocations: 30.56 kB / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.473e-05/0.3941, allocations: 0 / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.511e-05/0.3942, allocations: 109.2 kB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.3942, allocations: 4 kB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.3942, allocations: 3.938 kB / 0.5671 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.903e-05/0.3943, allocations: 33.64 kB / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3943, allocations: 4 kB / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.3943, allocations: 0 / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3943, allocations: 7.875 kB / 0.5671 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.787e-05/0.3944, allocations: 0 / 0.5671 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.3945, allocations: 124.8 kB / 0.5673 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.957e-05/0.3946, allocations: 18.58 kB / 0.5673 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.752e-05/0.3946, allocations: 8.797 kB / 0.5673 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-06/0.3946, allocations: 0 / 0.5673 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.304e-05/0.3946, allocations: 68.27 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.3946, allocations: 0 / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000182/0.3948, allocations: 63.39 kB / 0.5674 GB, free: 14.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.3949, allocations: 77.11 kB / 0.5675 GB, free: 13.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.219e-05/0.3949, allocations: 97.94 kB / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.395, allocations: 25.7 kB / 0.5676 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.516e-05/0.395, allocations: 80.14 kB / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.395, allocations: 0 / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.3951, allocations: 17.72 kB / 0.5677 GB, free: 13.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3952, allocations: 310.8 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-06/0.3952, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-06/0.3952, allocations: 3.938 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.052e-05/0.3953, allocations: 68.31 kB / 0.5681 GB, free: 13.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3953, allocations: 0 / 0.5681 GB, free: 13.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.631e-05/0.3954, allocations: 67.34 kB / 0.5681 GB, free: 13.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.3954, allocations: 29.7 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3954, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.3954, allocations: 4 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.3954, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3954, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.3954, allocations: 3.984 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-06/0.3955, allocations: 4.031 kB / 0.5682 GB, free: 13.22 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.924e-05/0.3956, allocations: 135.5 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.187e-06/0.3956, allocations: 3.938 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.16e-05/0.3956, allocations: 3 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3956, allocations: 0 / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3956, allocations: 3.938 kB / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.3956, allocations: 3.984 kB / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.3957, allocations: 124.8 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3957, allocations: 3.938 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3957, allocations: 7.938 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.3957, allocations: 0 / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.3957, allocations: 0 / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3957, allocations: 4 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3957, allocations: 0 / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.3958, allocations: 86.83 kB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.354e-06/0.3958, allocations: 11.88 kB / 0.5685 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.3958, allocations: 0 / 0.5685 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.3958, allocations: 4.031 kB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.079e-05/0.3959, allocations: 0 / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.3959, allocations: 0 / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.703e-05/0.3959, allocations: 75.28 kB / 0.5686 GB, free: 12.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3959, allocations: 4 kB / 0.5686 GB, free: 12.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.3962, allocations: 51.73 kB / 0.5687 GB, free: 12.62 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.001887/0.3981, allocations: 1.076 MB / 0.5697 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001047/0.3982, allocations: 55.41 kB / 0.5698 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3982, allocations: 4.062 kB / 0.5698 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.179e-05/0.3983, allocations: 55.41 kB / 0.5698 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.3984, allocations: 7.875 kB / 0.5698 GB, free: 11.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004228/0.3988, allocations: 138.4 kB / 0.57 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.3992, allocations: 0.6728 MB / 0.5706 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.3992, allocations: 0 / 0.5706 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.838e-05/0.3992, allocations: 11.44 kB / 0.5706 GB, free: 10.54 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3992, allocations: 0 / 0.5706 GB, free: 10.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.4265, allocations: 3.061 MB / 0.5736 GB, free: 7.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/8.404, allocations: 13.81 kB / 0.5736 GB, free: 7.523 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.26922461995855] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.47635104181245 8.503921336 8.105273736 Calling exit ...