Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001262/0.001262, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001446/0.001446, allocations: 210.2 kB / 24.53 MB, free: 4.07 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.368/1.368, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2152/0.2152, allocations: 46.93 MB / 361.6 MB, free: 4.211 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 79.88 kB / 0.497 GB, free: 7.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2928, allocations: 66.08 MB / 0.5615 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001645/0.2944, allocations: 0.4892 MB / 0.562 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.2966, allocations: 1.173 MB / 0.5631 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.2966, allocations: 3.938 kB / 0.5631 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.2966, allocations: 0 / 0.5631 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.2966, allocations: 0 / 0.5631 GB, free: 2.641 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 trunk/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.008522/0.3051, allocations: 0.7509 MB / 0.5638 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.569e-05/0.3052, allocations: 0 / 0.5638 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.468e-05/0.3052, allocations: 4 kB / 0.5638 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.441e-05/0.3052, allocations: 0 / 0.5638 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.949e-05/0.3052, allocations: 7.984 kB / 0.5639 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-06/0.3053, allocations: 0 / 0.5639 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003494/0.3087, allocations: 2.503 MB / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.3088, allocations: 0 / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.3088, allocations: 0 / 0.5663 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005767/0.3094, allocations: 371.3 kB / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3094, allocations: 0 / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3094, allocations: 0 / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.3094, allocations: 4 kB / 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.0005025/0.3099, allocations: 295.6 kB / 0.5669 GB, free: 14.69 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.3099, allocations: 16.02 kB / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.867e-05/0.3099, allocations: 0 / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.936e-05/0.31, allocations: 30.56 kB / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.01e-05/0.31, allocations: 0 / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.477e-05/0.3101, allocations: 105.2 kB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.3101, allocations: 4 kB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.3101, allocations: 15.88 kB / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.063e-05/0.3102, allocations: 29.7 kB / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.3102, allocations: 0 / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.3102, allocations: 0 / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3102, allocations: 7.938 kB / 0.5671 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.69e-05/0.3102, allocations: 0 / 0.5671 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.3104, allocations: 116.8 kB / 0.5673 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.712e-05/0.3105, allocations: 26.48 kB / 0.5673 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.3105, allocations: 12.86 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-06/0.3105, allocations: 0 / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.219e-05/0.3105, allocations: 56.27 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3105, allocations: 4.062 kB / 0.5673 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001904/0.3107, allocations: 59.39 kB / 0.5674 GB, free: 14.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.3108, allocations: 81.11 kB / 0.5675 GB, free: 13.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.837e-05/0.3109, allocations: 93.81 kB / 0.5676 GB, free: 13.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.3109, allocations: 29.64 kB / 0.5676 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.3109, allocations: 88.27 kB / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.3109, allocations: 0 / 0.5677 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.311, allocations: 13.72 kB / 0.5677 GB, free: 13.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3111, allocations: 310.8 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.3111, allocations: 3.984 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.102e-06/0.3111, allocations: 0 / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.839e-05/0.3112, allocations: 60.27 kB / 0.5681 GB, free: 13.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3112, allocations: 4.062 kB / 0.5681 GB, free: 13.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.035e-05/0.3113, allocations: 67.34 kB / 0.5681 GB, free: 13.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.3113, allocations: 33.69 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3113, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3113, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.839e-06/0.3113, allocations: 7.938 kB / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.3113, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.3114, allocations: 0 / 0.5682 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.3114, allocations: 0 / 0.5682 GB, free: 13.23 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.0001122/0.3115, allocations: 140.9 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.3115, allocations: 3.938 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.126e-05/0.3115, allocations: 3 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3115, allocations: 0 / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3115, allocations: 0 / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.3115, allocations: 3.984 kB / 0.5683 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.3116, allocations: 128.7 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3116, allocations: 0 / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3116, allocations: 3.938 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3116, allocations: 0 / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.3116, allocations: 3.938 kB / 0.5684 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3116, allocations: 4 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3116, allocations: 0 / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.3117, allocations: 94.77 kB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-06/0.3118, allocations: 0 / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.3118, allocations: 11.94 kB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.3118, allocations: 0 / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.3118, allocations: 0 / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.3118, allocations: 4.031 kB / 0.5685 GB, free: 12.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.309e-05/0.3118, allocations: 79.27 kB / 0.5686 GB, free: 12.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3118, allocations: 0 / 0.5686 GB, free: 12.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004059/0.3122, allocations: 51.75 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.00194/0.3142, allocations: 1.066 MB / 0.5697 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.3143, allocations: 63.34 kB / 0.5698 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3143, allocations: 0 / 0.5698 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.095e-05/0.3143, allocations: 55.39 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.0001221/0.3145, allocations: 12.06 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.0004028/0.3149, 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.0002888/0.3151, allocations: 0.669 MB / 0.5706 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.791e-06/0.3152, allocations: 0 / 0.5706 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.673e-05/0.3152, allocations: 11.44 kB / 0.5706 GB, free: 10.54 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3152, allocations: 0 / 0.5706 GB, free: 10.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.3383, allocations: 3.203 MB / 0.5738 GB, free: 7.441 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.86, allocations: 16 kB / 0.5738 GB, free: 7.426 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.594193400000222]