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.001209/0.001209, allocations: 112.2 kB / 21.23 MB, free: 0.7305 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.001498/0.001498, allocations: 212.9 kB / 24.53 MB, free: 4.141 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.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.2142/0.2142, allocations: 44.92 MB / 359.6 MB, free: 6.293 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.00196/0.00196, allocations: 67.91 kB / 0.4938 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3074, allocations: 65.47 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001522/0.3089, allocations: 0.4933 MB / 0.5583 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.3108, allocations: 1.174 MB / 0.5594 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.495e-05/0.3108, allocations: 0 / 0.5594 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.3109, allocations: 0 / 0.5594 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.967e-06/0.3109, allocations: 0 / 0.5594 GB, free: 6.137 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.001931/0.3128, allocations: 0.7494 MB / 0.5601 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.91e-05/0.3128, allocations: 4 kB / 0.5601 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.066e-05/0.3129, allocations: 4 kB / 0.5601 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.169e-05/0.3129, allocations: 4 kB / 0.5601 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.472e-05/0.3129, allocations: 3.984 kB / 0.5601 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-06/0.3129, allocations: 0 / 0.5601 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00317/0.3161, allocations: 2.507 MB / 0.5626 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.202e-06/0.3161, allocations: 4 kB / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.613e-05/0.3161, allocations: 0 / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.3165, allocations: 363.3 kB / 0.5629 GB, free: 2.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3165, allocations: 0 / 0.5629 GB, free: 2.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3165, allocations: 0 / 0.5629 GB, free: 2.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.3165, allocations: 0 / 0.5629 GB, free: 2.508 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.0003743/0.3169, allocations: 303.6 kB / 0.5632 GB, free: 2.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.3169, allocations: 8.031 kB / 0.5632 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.016e-05/0.3169, allocations: 4 kB / 0.5632 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.528e-05/0.317, allocations: 34.56 kB / 0.5633 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.015e-05/0.317, allocations: 0 / 0.5633 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.596e-05/0.3171, allocations: 105.2 kB / 0.5634 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.3171, allocations: 3.938 kB / 0.5634 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.3171, allocations: 0 / 0.5634 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.182e-05/0.3171, allocations: 37.69 kB / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.3172, allocations: 0 / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.3172, allocations: 0 / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.3172, allocations: 7.938 kB / 0.5634 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.191e-05/0.3172, allocations: 11.92 kB / 0.5634 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001175/0.3173, allocations: 116.7 kB / 0.5636 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.29e-05/0.3174, allocations: 14.58 kB / 0.5636 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.297e-05/0.3174, allocations: 8.953 kB / 0.5636 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.3174, allocations: 0 / 0.5636 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/0.3174, allocations: 64.25 kB / 0.5636 GB, free: 1.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3174, allocations: 4 kB / 0.5636 GB, free: 1.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.3176, allocations: 63.34 kB / 0.5637 GB, free: 1.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.3176, allocations: 77.11 kB / 0.5638 GB, free: 1.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.841e-05/0.3177, allocations: 93.81 kB / 0.5639 GB, free: 1.383 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.3177, allocations: 25.7 kB / 0.5639 GB, free: 1.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.3177, allocations: 84.14 kB / 0.564 GB, free: 1.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.3177, allocations: 0 / 0.564 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.3178, allocations: 17.7 kB / 0.564 GB, free: 1.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3179, allocations: 315 kB / 0.5643 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.201e-05/0.3179, allocations: 4 kB / 0.5643 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-06/0.3179, allocations: 0 / 0.5643 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.623e-05/0.318, allocations: 64.2 kB / 0.5644 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.318, allocations: 0 / 0.5644 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.984e-05/0.318, allocations: 67.33 kB / 0.5644 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.3181, allocations: 33.7 kB / 0.5644 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.3181, allocations: 0 / 0.5644 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.3181, allocations: 4.094 kB / 0.5645 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3181, allocations: 0 / 0.5645 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.3181, allocations: 0 / 0.5645 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.312e-05/0.3181, allocations: 0 / 0.5645 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3181, allocations: 4 kB / 0.5645 GB, free: 0.7188 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 8.871e-05/0.3182, allocations: 135.5 kB / 0.5646 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.3182, allocations: 3.984 kB / 0.5646 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.173e-05/0.3182, allocations: 7 kB / 0.5646 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3182, allocations: 3.938 kB / 0.5646 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3182, allocations: 4 kB / 0.5646 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3182, allocations: 0 / 0.5646 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.106e-05/0.3183, allocations: 124.7 kB / 0.5647 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3183, allocations: 0 / 0.5647 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3183, allocations: 4 kB / 0.5647 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.3183, allocations: 0 / 0.5647 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.3183, allocations: 3.984 kB / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.3183, allocations: 0 / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.3183, allocations: 0 / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.723e-05/0.3184, allocations: 98.72 kB / 0.5648 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-06/0.3184, allocations: 3.938 kB / 0.5648 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.3184, allocations: 3.984 kB / 0.5648 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.036e-05/0.3184, allocations: 4 kB / 0.5648 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.3185, allocations: 0 / 0.5648 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3185, allocations: 3.984 kB / 0.5648 GB, free: 248 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.074e-05/0.3185, allocations: 75.28 kB / 0.5649 GB, free: 172 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3185, allocations: 0 / 0.5649 GB, free: 172 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.3188, allocations: 55.77 kB / 0.565 GB, free: 116 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.001756/0.3206, allocations: 1.076 MB / 0.566 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.309e-05/0.3207, allocations: 67.33 kB / 0.5661 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3207, allocations: 0 / 0.5661 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.623e-05/0.3207, allocations: 51.41 kB / 0.5661 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.0001167/0.3208, allocations: 10.12 kB / 0.5661 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000348/0.3212, allocations: 134.5 kB / 0.5663 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.3215, allocations: 0.6769 MB / 0.5669 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.909e-06/0.3215, allocations: 0 / 0.5669 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.495e-05/0.3215, allocations: 11.44 kB / 0.5669 GB, free: 14.04 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3215, allocations: 0 / 0.5669 GB, free: 14.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.3431, allocations: 3.206 MB / 0.5701 GB, free: 10.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.31, allocations: 7.922 kB / 0.5701 GB, free: 10.96 MB / 414.1 MB " [Timeout remaining time 649] (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.11324599100044]