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.001705/0.001705, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.00214/0.00214, allocations: 212.5 kB / 23.73 MB, free: 4.41 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.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2271/0.2271, allocations: 44.93 MB / 358.8 MB, free: 6.148 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: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") [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.002067/0.002067, allocations: 63.91 kB / 0.4935 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3808, allocations: 65.49 MB / 0.5574 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001842/0.3827, allocations: 488.3 kB / 0.5579 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.3849, allocations: 1.108 MB / 0.559 GB, free: 5.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.157e-05/0.3849, allocations: 0 / 0.559 GB, free: 5.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.3849, allocations: 4 kB / 0.559 GB, free: 5.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.512e-06/0.385, allocations: 0 / 0.559 GB, free: 5.875 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.002513/0.3875, allocations: 0.7403 MB / 0.5597 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.973e-05/0.3875, allocations: 0 / 0.5597 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.635e-05/0.3876, allocations: 4 kB / 0.5597 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.79e-05/0.3876, allocations: 0 / 0.5597 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.351e-05/0.3876, allocations: 3.984 kB / 0.5597 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-06/0.3876, allocations: 0 / 0.5597 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003385/0.391, allocations: 2.46 MB / 0.5621 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.026e-05/0.391, allocations: 0 / 0.5621 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.22e-05/0.3911, allocations: 7.984 kB / 0.5621 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005894/0.3916, allocations: 351.3 kB / 0.5625 GB, free: 2.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3917, allocations: 0 / 0.5625 GB, free: 2.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3917, allocations: 0 / 0.5625 GB, free: 2.316 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.3917, allocations: 0 / 0.5625 GB, free: 2.316 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.0004798/0.3921, allocations: 299.5 kB / 0.5628 GB, free: 1.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.3922, allocations: 16.03 kB / 0.5628 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.3922, allocations: 0 / 0.5628 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.3923, allocations: 101.2 kB / 0.5629 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.3924, allocations: 3.938 kB / 0.5629 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.3924, allocations: 4 kB / 0.5629 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.3925, allocations: 63.33 kB / 0.5629 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3925, allocations: 0 / 0.5629 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.3925, allocations: 0 / 0.5629 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.3925, allocations: 4 kB / 0.5629 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.399e-05/0.3926, allocations: 29.64 kB / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001344/0.3927, allocations: 97.33 kB / 0.5631 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.941e-05/0.3928, allocations: 44.31 kB / 0.5631 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.1e-05/0.3928, allocations: 38.48 kB / 0.5631 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.3928, allocations: 4.062 kB / 0.5631 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.6e-05/0.3929, allocations: 60.27 kB / 0.5632 GB, free: 1.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3929, allocations: 0 / 0.5632 GB, free: 1.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002548/0.3932, allocations: 118.7 kB / 0.5633 GB, free: 1.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.3932, allocations: 77.11 kB / 0.5634 GB, free: 1.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.818e-05/0.3933, allocations: 97.81 kB / 0.5635 GB, free: 1.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.3933, allocations: 25.7 kB / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.3934, allocations: 88.27 kB / 0.5636 GB, free: 0.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.3934, allocations: 0 / 0.5636 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.3934, allocations: 9.719 kB / 0.5636 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3935, allocations: 314.8 kB / 0.5639 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.373e-05/0.3936, allocations: 25.7 kB / 0.5639 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.083e-05/0.3936, allocations: 25.7 kB / 0.5639 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.663e-05/0.3937, allocations: 68.25 kB / 0.564 GB, free: 492 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3937, allocations: 0 / 0.564 GB, free: 492 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.809e-05/0.3937, allocations: 92.98 kB / 0.5641 GB, free: 380 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.79e-05/0.3938, allocations: 33.8 kB / 0.5641 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3938, allocations: 7.984 kB / 0.5641 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3938, allocations: 0 / 0.5641 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.3938, allocations: 0 / 0.5641 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3938, allocations: 0 / 0.5641 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.3938, allocations: 0 / 0.5641 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.3938, allocations: 0 / 0.5641 GB, free: 332 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.0001076/0.3939, allocations: 143.5 kB / 0.5643 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-06/0.394, allocations: 7.875 kB / 0.5643 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.318e-05/0.394, allocations: 3 kB / 0.5643 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.394, allocations: 4 kB / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.394, allocations: 0 / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.394, allocations: 7.938 kB / 0.5643 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.1e-05/0.3941, allocations: 97.31 kB / 0.5644 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3941, allocations: 0 / 0.5644 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.574e-06/0.3941, allocations: 4 kB / 0.5644 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.3941, allocations: 3.938 kB / 0.5644 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.3941, allocations: 4 kB / 0.5644 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.3941, allocations: 0 / 0.5644 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3941, allocations: 0 / 0.5644 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/0.3942, allocations: 124.5 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-06/0.3942, allocations: 7.969 kB / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.3943, allocations: 0 / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-06/0.3943, allocations: 0 / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.636e-05/0.3943, allocations: 4 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.3943, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.035e-05/0.3943, allocations: 75.28 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3943, allocations: 0 / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.3946, allocations: 55.8 kB / 0.5647 GB, free: 15.71 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.001666/0.3963, allocations: 0.5519 MB / 0.5652 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001533/0.3965, allocations: 118.7 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3965, allocations: 0 / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.317e-05/0.3965, allocations: 85.05 kB / 0.5654 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.3967, allocations: 4 kB / 0.5654 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002332/0.3969, allocations: 110.8 kB / 0.5655 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.388e-05/0.3969, allocations: 59.34 kB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.3969, allocations: 0 / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.455e-05/0.397, allocations: 7.438 kB / 0.5656 GB, free: 14.76 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.397, allocations: 0 / 0.5656 GB, free: 14.76 MB / 414.1 MB Notification: Performance of Templates: time 0.005954/0.4029, allocations: 2.133 MB / 0.5677 GB, free: 12.62 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (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 & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/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: 5.34337499178946]