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.001251/0.001251, allocations: 101.2 kB / 21.22 MB, free: 0.6289 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.001396/0.001396, allocations: 210.9 kB / 24.52 MB, free: 3.914 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.371/1.371, allocations: 230.5 MB / 258.2 MB, free: 7.793 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.2132/0.2132, allocations: 46.95 MB / 361.6 MB, free: 4.023 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.002254/0.002254, allocations: 75.88 kB / 0.4969 GB, free: 7.594 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2921, allocations: 66.09 MB / 0.5614 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001489/0.2936, allocations: 489.1 kB / 0.5619 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.2956, allocations: 1.111 MB / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.668e-05/0.2956, allocations: 0 / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.2956, allocations: 0 / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.2956, allocations: 7.938 kB / 0.563 GB, free: 2.445 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.001945/0.2976, allocations: 0.7443 MB / 0.5637 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.19e-05/0.2976, allocations: 8 kB / 0.5637 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.24e-05/0.2976, allocations: 4 kB / 0.5637 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.512e-05/0.2976, allocations: 3.984 kB / 0.5637 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.601e-05/0.2977, allocations: 3.938 kB / 0.5637 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-06/0.2977, allocations: 0 / 0.5637 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00316/0.3008, allocations: 2.461 MB / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.937e-06/0.3008, allocations: 3.984 kB / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.619e-05/0.3008, allocations: 0 / 0.5661 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.3013, allocations: 351.4 kB / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3013, allocations: 0 / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3013, allocations: 4 kB / 0.5665 GB, free: 14.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.3013, allocations: 0 / 0.5665 GB, free: 14.87 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.0004/0.3017, allocations: 299.5 kB / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.3017, allocations: 16.03 kB / 0.5668 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.124e-05/0.3017, allocations: 0 / 0.5668 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.3018, allocations: 30.56 kB / 0.5668 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.3018, allocations: 0 / 0.5668 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.501e-05/0.3019, allocations: 101.2 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-06/0.3019, allocations: 4 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.3019, allocations: 3.938 kB / 0.5669 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.859e-05/0.302, allocations: 59.33 kB / 0.567 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.302, allocations: 4 kB / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.72e-06/0.302, allocations: 0 / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.302, allocations: 4 kB / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.694e-05/0.302, allocations: 25.7 kB / 0.567 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001289/0.3022, allocations: 124.8 kB / 0.5671 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.858e-05/0.3022, allocations: 48.2 kB / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.701e-05/0.3023, allocations: 38.59 kB / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-06/0.3023, allocations: 0 / 0.5672 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.3023, allocations: 56.27 kB / 0.5673 GB, free: 13.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.3023, allocations: 0 / 0.5673 GB, free: 13.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001903/0.3025, allocations: 118.8 kB / 0.5674 GB, free: 13.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.3026, allocations: 81.11 kB / 0.5674 GB, free: 13.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.283e-05/0.3026, allocations: 97.94 kB / 0.5675 GB, free: 13.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.3026, allocations: 29.64 kB / 0.5676 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.3026, allocations: 80.14 kB / 0.5676 GB, free: 13.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.3027, allocations: 0 / 0.5676 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.3027, allocations: 21.66 kB / 0.5677 GB, free: 13.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3028, allocations: 310.8 kB / 0.568 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.51e-05/0.3029, allocations: 25.7 kB / 0.568 GB, free: 13.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.207e-05/0.3029, allocations: 37.62 kB / 0.568 GB, free: 13.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.485e-05/0.3029, allocations: 60.27 kB / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3029, allocations: 4.062 kB / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.954e-05/0.303, allocations: 93.05 kB / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.963e-05/0.3031, allocations: 37.69 kB / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3031, allocations: 0 / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.3031, allocations: 0 / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.3031, allocations: 0 / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.3031, allocations: 0 / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.573e-05/0.3031, allocations: 0 / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.3031, allocations: 0 / 0.5682 GB, free: 12.8 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.0001082/0.3032, allocations: 136.9 kB / 0.5683 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.3033, allocations: 11.91 kB / 0.5684 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.512e-05/0.3033, allocations: 11 kB / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3033, allocations: 3.984 kB / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3033, allocations: 3.984 kB / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3033, allocations: 0 / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.3034, allocations: 116.7 kB / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3034, allocations: 0 / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-06/0.3034, allocations: 4 kB / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3034, allocations: 0 / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.3034, allocations: 0 / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3034, allocations: 0 / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3034, allocations: 4 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.3035, allocations: 120.5 kB / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-06/0.3035, allocations: 0 / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.3036, allocations: 4 kB / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-06/0.3036, allocations: 0 / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.349e-05/0.3036, allocations: 3.984 kB / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.3036, allocations: 0 / 0.5686 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.557e-05/0.3036, allocations: 75.28 kB / 0.5687 GB, free: 12.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3036, allocations: 3.938 kB / 0.5687 GB, free: 12.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003661/0.304, allocations: 59.67 kB / 0.5687 GB, free: 12.16 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.001966/0.306, allocations: 1.104 MB / 0.5698 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.3061, allocations: 118.8 kB / 0.5699 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3061, allocations: 64 / 0.5699 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.789e-05/0.3062, allocations: 89.05 kB / 0.57 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.3063, allocations: 3.938 kB / 0.57 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003904/0.3067, allocations: 168.1 kB / 0.5702 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.557e-05/0.3067, allocations: 55.36 kB / 0.5702 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.3067, allocations: 0 / 0.5702 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.525e-05/0.3067, allocations: 11.44 kB / 0.5702 GB, free: 10.53 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3067, allocations: 0 / 0.5702 GB, free: 10.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.3291, allocations: 3.256 MB / 0.5734 GB, free: 7.379 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.14, allocations: 7.609 kB / 0.5734 GB, free: 7.375 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.819449678063393]