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.001911/0.001911, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001642/0.001642, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.475/1.475, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 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.3408/0.3408, allocations: 32.8 MB / 293.9 MB, free: 1.219 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 375.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.951e-05/3.133e-05, allocations: 2.312 kB / 375.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001637/0.001669, allocations: 0.4886 MB / 375.7 MB, free: 4.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.00395, allocations: 1.116 MB / 376.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.003971, allocations: 0 / 376.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.194e-05/0.003983, allocations: 0 / 376.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.003988, allocations: 0 / 376.8 MB, free: 3.391 MB / 346.7 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.002451/0.00644, allocations: 0.7505 MB / 377.6 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.362e-05/0.006484, allocations: 4 kB / 377.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.58e-05/0.006509, allocations: 0 / 377.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.354e-05/0.006533, allocations: 0 / 377.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.647e-05/0.006549, allocations: 0 / 377.6 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-06/0.006557, allocations: 4 kB / 377.6 MB, free: 2.633 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003574/0.01013, allocations: 2.466 MB / 380.1 MB, free: 172 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.01014, allocations: 3.984 kB / 380.1 MB, free: 168 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.01017, allocations: 0 / 380.1 MB, free: 168 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006518/0.01082, allocations: 371.3 kB / 380.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.01082, allocations: 3.938 kB / 380.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01082, allocations: 0 / 380.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.01083, allocations: 0 / 380.4 MB, free: 15.8 MB / 362.7 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.0004976/0.01132, allocations: 307.5 kB / 380.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.01136, allocations: 8.031 kB / 380.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.036e-05/0.01141, allocations: 0 / 380.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.01152, allocations: 109.2 kB / 380.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.01153, allocations: 0 / 380.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.01154, allocations: 0 / 380.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.01168, allocations: 63.34 kB / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.01169, allocations: 0 / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.01169, allocations: 0 / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.0117, allocations: 0 / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.558e-05/0.01174, allocations: 37.64 kB / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.01187, allocations: 97.31 kB / 381.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.748e-05/0.01194, allocations: 44.31 kB / 381.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.968e-05/0.01197, allocations: 30.56 kB / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.287e-06/0.01198, allocations: 0 / 381.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.382e-05/0.01204, allocations: 64.33 kB / 381.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.22e-07/0.01204, allocations: 0 / 381.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002333/0.01227, allocations: 122.7 kB / 381.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.01234, allocations: 81.05 kB / 381.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.612e-05/0.01241, allocations: 89.86 kB / 381.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.01242, allocations: 33.83 kB / 381.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.801e-05/0.01247, allocations: 84.12 kB / 381.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.01249, allocations: 4 kB / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.01254, allocations: 9.719 kB / 381.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.01271, allocations: 310.8 kB / 381.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.342e-05/0.01275, allocations: 33.69 kB / 381.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.529e-05/0.01277, allocations: 25.7 kB / 382 MB, free: 14.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.008e-05/0.01284, allocations: 64.27 kB / 382 MB, free: 13.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.01284, allocations: 0 / 382 MB, free: 13.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001086/0.01295, allocations: 97.09 kB / 382.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.296e-05/0.013, allocations: 29.7 kB / 382.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.013, allocations: 3.938 kB / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.01302, allocations: 0 / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.376e-06/0.01303, allocations: 4 kB / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.01303, allocations: 0 / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.844e-05/0.01305, allocations: 3.984 kB / 382.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.01306, allocations: 0 / 382.2 MB, free: 13.8 MB / 362.7 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.0001161/0.01317, allocations: 139.5 kB / 382.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.01319, allocations: 3.953 kB / 382.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.196e-05/0.0132, allocations: 10.95 kB / 382.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.0132, allocations: 4 kB / 382.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.0132, allocations: 0 / 382.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.0132, allocations: 4 kB / 382.3 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.09e-05/0.01329, allocations: 93.33 kB / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.0133, allocations: 4 kB / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.0133, allocations: 0 / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.0133, allocations: 0 / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.01331, allocations: 4 kB / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.01331, allocations: 3.938 kB / 382.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01331, allocations: 0 / 382.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.01347, allocations: 124.5 kB / 382.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-06/0.01347, allocations: 0 / 382.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.01348, allocations: 0 / 382.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.375e-05/0.0135, allocations: 7.938 kB / 382.6 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.01351, allocations: 7.922 kB / 382.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.01352, allocations: 0 / 382.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.014e-05/0.01356, allocations: 75.28 kB / 382.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01356, allocations: 0 / 382.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003725/0.01393, allocations: 51.8 kB / 382.7 MB, free: 13.2 MB / 362.7 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.001872/0.0158, allocations: 0.568 MB / 383.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001434/0.01594, allocations: 114.7 kB / 383.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.01595, allocations: 4 kB / 383.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.469e-05/0.01601, allocations: 81.11 kB / 383.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.01615, allocations: 10.16 kB / 383.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002732/0.01642, allocations: 111.9 kB / 383.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.061e-05/0.01648, allocations: 55.36 kB / 383.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.062e-06/0.01649, allocations: 0 / 383.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.811e-05/0.0165, allocations: 8.5 kB / 383.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.0165, allocations: 0 / 383.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of Templates: time 0.006243/0.02275, allocations: 2.196 MB / 385.8 MB, free: 10.03 MB / 362.7 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: 4.894323384040035]