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.001217/0.001217, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.001381/0.001381, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 7.73 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.2108/0.2108, allocations: 44.94 MB / 359.6 MB, free: 6.027 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",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.002226/0.002226, allocations: 72.17 kB / 0.4938 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3005, allocations: 65.47 MB / 0.5577 GB, free: 7.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001657/0.3021, allocations: 498 kB / 0.5582 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.3041, allocations: 1.102 MB / 0.5593 GB, free: 5.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.73e-05/0.3042, allocations: 0 / 0.5593 GB, free: 5.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.281e-05/0.3042, allocations: 0 / 0.5593 GB, free: 5.895 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.271e-06/0.3042, allocations: 0 / 0.5593 GB, free: 5.895 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.002079/0.3063, allocations: 0.7552 MB / 0.56 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.482e-05/0.3063, allocations: 4 kB / 0.56 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.062e-05/0.3063, allocations: 7.984 kB / 0.56 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.3064, allocations: 4 kB / 0.56 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.976e-05/0.3064, allocations: 7.922 kB / 0.56 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.003e-06/0.3064, allocations: 4 kB / 0.56 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.3098, allocations: 2.464 MB / 0.5624 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.079e-05/0.3098, allocations: 0 / 0.5624 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.3099, allocations: 3.984 kB / 0.5624 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004529/0.3103, allocations: 347.4 kB / 0.5628 GB, free: 2.305 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3103, allocations: 0 / 0.5628 GB, free: 2.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3103, allocations: 0 / 0.5628 GB, free: 2.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3103, allocations: 0 / 0.5628 GB, free: 2.305 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.0004256/0.3108, allocations: 307.5 kB / 0.5631 GB, free: 1.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.3108, allocations: 8.031 kB / 0.5631 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.408e-05/0.3108, allocations: 0 / 0.5631 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.3108, allocations: 30.56 kB / 0.5631 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.3109, allocations: 8 kB / 0.5631 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.879e-05/0.3109, allocations: 109.2 kB / 0.5632 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.311, allocations: 0 / 0.5632 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.311, allocations: 0 / 0.5632 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.92e-05/0.3111, allocations: 59.34 kB / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3111, allocations: 0 / 0.5633 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3111, allocations: 3.984 kB / 0.5633 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3111, allocations: 0 / 0.5633 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.985e-05/0.3111, allocations: 29.7 kB / 0.5633 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.3112, allocations: 120.7 kB / 0.5634 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.722e-05/0.3113, allocations: 48.31 kB / 0.5635 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.044e-05/0.3113, allocations: 30.56 kB / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.3114, allocations: 0 / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.901e-05/0.3114, allocations: 68.31 kB / 0.5636 GB, free: 1.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3114, allocations: 3.938 kB / 0.5636 GB, free: 1.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001879/0.3116, allocations: 110.8 kB / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.3117, allocations: 77.11 kB / 0.5637 GB, free: 1.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.644e-05/0.3117, allocations: 97.8 kB / 0.5638 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3117, allocations: 25.7 kB / 0.5639 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.3118, allocations: 92.06 kB / 0.5639 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.3118, allocations: 8.125 kB / 0.564 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.3118, allocations: 9.719 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3119, allocations: 314.8 kB / 0.5643 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.201e-05/0.312, allocations: 29.7 kB / 0.5643 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.818e-05/0.312, allocations: 25.7 kB / 0.5643 GB, free: 472 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.261e-05/0.312, allocations: 72.14 kB / 0.5644 GB, free: 384 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.312, allocations: 3.984 kB / 0.5644 GB, free: 380 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.871e-05/0.3121, allocations: 85.11 kB / 0.5645 GB, free: 276 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.3122, allocations: 29.7 kB / 0.5645 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3122, allocations: 4.094 kB / 0.5645 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.3122, allocations: 0 / 0.5645 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.3122, allocations: 4 kB / 0.5645 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.3122, allocations: 0 / 0.5645 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.771e-05/0.3122, allocations: 3.984 kB / 0.5645 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3122, allocations: 0 / 0.5645 GB, free: 228 kB / 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.0001026/0.3123, allocations: 143.5 kB / 0.5646 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-06/0.3123, allocations: 0 / 0.5646 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.181e-05/0.3123, allocations: 3 kB / 0.5646 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3123, allocations: 0 / 0.5646 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3123, allocations: 4 kB / 0.5646 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3123, allocations: 0 / 0.5646 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.3124, allocations: 124.7 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.3124, allocations: 0 / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3124, allocations: 0 / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.3124, allocations: 3.938 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.3124, allocations: 0 / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3125, allocations: 4 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3125, allocations: 0 / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.3126, allocations: 120.5 kB / 0.5649 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.342e-06/0.3126, allocations: 4 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.3126, allocations: 4.031 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.3126, allocations: 0 / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/0.3126, allocations: 4 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-06/0.3126, allocations: 0 / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.678e-05/0.3127, allocations: 75.28 kB / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3127, allocations: 0 / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.313, allocations: 59.73 kB / 0.565 GB, free: 15.59 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.001874/0.3149, allocations: 1.118 MB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001271/0.315, allocations: 114.8 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.315, allocations: 0 / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.816e-05/0.3151, allocations: 81.09 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001203/0.3152, allocations: 7.938 kB / 0.5663 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003643/0.3155, allocations: 168.2 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.972e-05/0.3156, allocations: 59.3 kB / 0.5665 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.458e-06/0.3156, allocations: 0 / 0.5665 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3156, allocations: 7.438 kB / 0.5665 GB, free: 13.98 MB / 414.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3156, allocations: 0 / 0.5665 GB, free: 13.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.3376, allocations: 3.254 MB / 0.5697 GB, free: 10.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.55, allocations: 6.562 kB / 0.5697 GB, free: 10.86 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.37289806699846]