Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002365/0.002365, allocations: 213.4 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2279/0.2279, allocations: 44.92 MB / 358.8 MB, free: 6.312 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 67.89 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3217, allocations: 65.47 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001595/0.3233, allocations: 494 kB / 0.5575 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.3254, allocations: 1.167 MB / 0.5586 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.111e-05/0.3254, allocations: 3.938 kB / 0.5586 GB, free: 6.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.3254, allocations: 4 kB / 0.5586 GB, free: 6.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-06/0.3254, allocations: 0 / 0.5586 GB, free: 6.129 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0.0+maint.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.3277, allocations: 0.7656 MB / 0.5594 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.641e-05/0.3277, allocations: 0 / 0.5594 GB, free: 5.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.659e-05/0.3278, allocations: 4 kB / 0.5594 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.3278, allocations: 4 kB / 0.5594 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.147e-05/0.3278, allocations: 3.984 kB / 0.5594 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-06/0.3278, allocations: 0 / 0.5594 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003693/0.3315, allocations: 2.507 MB / 0.5618 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.3315, allocations: 0 / 0.5618 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.526e-05/0.3315, allocations: 0 / 0.5618 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.332, allocations: 367.3 kB / 0.5622 GB, free: 2.488 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.332, allocations: 4 kB / 0.5622 GB, free: 2.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.332, allocations: 0 / 0.5622 GB, free: 2.484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.332, allocations: 0 / 0.5622 GB, free: 2.484 MB / 398.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.0004097/0.3324, allocations: 299.6 kB / 0.5625 GB, free: 2.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3325, allocations: 12.03 kB / 0.5625 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.438e-05/0.3325, allocations: 30.56 kB / 0.5625 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.3325, allocations: 0 / 0.5625 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.21e-05/0.3326, allocations: 105.2 kB / 0.5626 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.3326, allocations: 7.938 kB / 0.5626 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-06/0.3326, allocations: 0 / 0.5626 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.281e-05/0.3327, allocations: 33.69 kB / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.3327, allocations: 0 / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.3327, allocations: 3.938 kB / 0.5627 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3327, allocations: 4 kB / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.663e-05/0.3328, allocations: 0 / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.3329, allocations: 120.7 kB / 0.5628 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.614e-05/0.3329, allocations: 22.55 kB / 0.5628 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.465e-05/0.333, allocations: 8.859 kB / 0.5628 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.333, allocations: 0 / 0.5628 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/0.333, allocations: 60.31 kB / 0.5629 GB, free: 1.645 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.333, allocations: 4 kB / 0.5629 GB, free: 1.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001676/0.3332, allocations: 59.41 kB / 0.5629 GB, free: 1.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.025e-05/0.3333, allocations: 81.11 kB / 0.563 GB, free: 1.473 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.283e-05/0.3333, allocations: 97.75 kB / 0.5631 GB, free: 1.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.3333, allocations: 25.7 kB / 0.5631 GB, free: 1.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.575e-05/0.3334, allocations: 84.27 kB / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.3334, allocations: 3.938 kB / 0.5632 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.3334, allocations: 17.7 kB / 0.5632 GB, free: 1.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3336, allocations: 310.8 kB / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.142e-05/0.3336, allocations: 4 kB / 0.5635 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.035e-05/0.3336, allocations: 0 / 0.5635 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.164e-05/0.3337, allocations: 60.27 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.3337, allocations: 8 kB / 0.5636 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.154e-05/0.3337, allocations: 63.39 kB / 0.5637 GB, free: 0.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.3338, allocations: 29.7 kB / 0.5637 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3338, allocations: 0 / 0.5637 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.3338, allocations: 0 / 0.5637 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.246e-06/0.3338, allocations: 4 kB / 0.5637 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3338, allocations: 3.938 kB / 0.5637 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.3338, allocations: 0 / 0.5637 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.3338, allocations: 0 / 0.5637 GB, free: 0.707 MB / 398.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.0001179/0.334, allocations: 147.5 kB / 0.5638 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.334, allocations: 3.984 kB / 0.5638 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.334, allocations: 3 kB / 0.5638 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.334, allocations: 0 / 0.5638 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.334, allocations: 0 / 0.5638 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.334, allocations: 0 / 0.5638 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.3341, allocations: 120.7 kB / 0.5639 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3341, allocations: 7.938 kB / 0.564 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3341, allocations: 0 / 0.564 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3341, allocations: 0 / 0.564 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.3341, allocations: 3.984 kB / 0.564 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3341, allocations: 4 kB / 0.564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3341, allocations: 0 / 0.564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/0.3342, allocations: 90.78 kB / 0.5641 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.395e-06/0.3342, allocations: 7.969 kB / 0.5641 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.3342, allocations: 4 kB / 0.5641 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.046e-06/0.3343, allocations: 0 / 0.5641 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.187e-05/0.3343, allocations: 3.938 kB / 0.5641 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.3343, allocations: 8.031 kB / 0.5641 GB, free: 232 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.679e-05/0.3343, allocations: 75.28 kB / 0.5641 GB, free: 156 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3343, allocations: 0 / 0.5641 GB, free: 156 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003474/0.3347, allocations: 55.73 kB / 0.5642 GB, free: 100 kB / 398.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.001908/0.3366, allocations: 1.059 MB / 0.5652 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3367, allocations: 63.39 kB / 0.5653 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3367, allocations: 3.938 kB / 0.5653 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.067e-05/0.3367, allocations: 55.47 kB / 0.5654 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.3368, allocations: 8.844 kB / 0.5654 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.3372, allocations: 134.4 kB / 0.5655 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.3376, allocations: 0.6729 MB / 0.5661 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.473e-06/0.3376, allocations: 0 / 0.5661 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.135e-05/0.3376, allocations: 11.44 kB / 0.5662 GB, free: 14.04 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3376, allocations: 0 / 0.5662 GB, free: 14.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02856/0.3662, allocations: 3.184 MB / 0.5693 GB, free: 10.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.59, allocations: 6.641 kB / 0.5693 GB, free: 10.98 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 14.396943615050986]