Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001007/0.001007, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.000963/0.000963, allocations: 162.8 kB / 24.99 MB, free: 8.746 MB / 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 0.976/0.976, allocations: 177.1 MB / 205.3 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2696/0.2696, allocations: 34.27 MB / 296 MB, free: 0.7656 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 378 MB, free: 3.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.911e-05/3.093e-05, allocations: 5.828 kB / 378 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001629/0.00166, allocations: 0.5008 MB / 378.5 MB, free: 2.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.003637, allocations: 1.143 MB / 379.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.777e-05/0.003665, allocations: 3.938 kB / 379.6 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.586e-05/0.003681, allocations: 0 / 379.6 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.102e-06/0.003687, allocations: 0 / 379.6 MB, free: 1.344 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.1.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.001891/0.005578, allocations: 0.7489 MB / 380.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.978e-05/0.005628, allocations: 4 kB / 380.4 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.005663, allocations: 4 kB / 380.4 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.619e-05/0.005689, allocations: 4 kB / 380.4 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.64e-05/0.005706, allocations: 3.938 kB / 380.4 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.344e-06/0.005713, allocations: 0 / 380.4 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002948/0.008661, allocations: 2.462 MB / 382.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.008669, allocations: 0 / 382.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.948e-05/0.008689, allocations: 0 / 382.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004963/0.009185, allocations: 375.3 kB / 383.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.009189, allocations: 0 / 383.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.00919, allocations: 4 kB / 383.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.009195, allocations: 0 / 383.2 MB, free: 13.76 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.0004185/0.009614, allocations: 405.4 kB / 383.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.009655, allocations: 8.031 kB / 383.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/0.009699, allocations: 4 kB / 383.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.742e-05/0.009776, allocations: 120 kB / 383.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.009788, allocations: 0 / 383.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-06/0.009797, allocations: 0 / 383.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.889e-05/0.009895, allocations: 59.34 kB / 383.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-06/0.009902, allocations: 0 / 383.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.009911, allocations: 0 / 383.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.009919, allocations: 0 / 383.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.355e-05/0.009942, allocations: 33.64 kB / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001018/0.01004, allocations: 108.6 kB / 384 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.555e-05/0.0101, allocations: 56.8 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.433e-05/0.01012, allocations: 37.39 kB / 384.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.021e-06/0.01013, allocations: 4.062 kB / 384.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.01017, allocations: 59.09 kB / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.01017, allocations: 0 / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001992/0.01037, allocations: 126.7 kB / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.01042, allocations: 77.11 kB / 384.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.806e-05/0.01046, allocations: 142.2 kB / 384.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.01047, allocations: 29.7 kB / 384.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.01051, allocations: 126.9 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.01053, allocations: 352 / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.01056, allocations: 19.5 kB / 384.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.01069, allocations: 0.4884 MB / 385.1 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.01071, allocations: 29.64 kB / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.544e-05/0.01073, allocations: 29.7 kB / 385.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.634e-05/0.01078, allocations: 63.09 kB / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.01079, allocations: 3.938 kB / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.27e-05/0.01088, allocations: 97.05 kB / 385.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.01091, allocations: 33.7 kB / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.01092, allocations: 3.938 kB / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.01093, allocations: 4.094 kB / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.01094, allocations: 0 / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.01094, allocations: 0 / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.01096, allocations: 0 / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.01096, allocations: 0 / 385.4 MB, free: 11.32 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 8.851e-05/0.01105, allocations: 186.3 kB / 385.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.819e-06/0.01106, allocations: 3.984 kB / 385.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.23e-05/0.01108, allocations: 10.94 kB / 385.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.01108, allocations: 0 / 385.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.01108, allocations: 0 / 385.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.01108, allocations: 4 kB / 385.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.363e-05/0.01116, allocations: 104.6 kB / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.01116, allocations: 0 / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-06/0.01116, allocations: 4 kB / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01116, allocations: 0 / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.01117, allocations: 0 / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.01117, allocations: 7.875 kB / 385.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.01118, allocations: 3.984 kB / 385.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.01129, allocations: 127.9 kB / 385.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-06/0.0113, allocations: 4 kB / 385.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.01131, allocations: 3.984 kB / 385.8 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.108e-05/0.01132, allocations: 7.969 kB / 385.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.01134, allocations: 0 / 385.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.01134, allocations: 0 / 385.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.704e-05/0.01138, allocations: 127.2 kB / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01138, allocations: 0 / 386 MB, free: 10.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003484/0.01173, allocations: 51.8 kB / 386 MB, free: 10.6 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.001661/0.01339, allocations: 0.573 MB / 386.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.01353, allocations: 122.4 kB / 386.7 MB, free: 9.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.01353, allocations: 0 / 386.7 MB, free: 9.953 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.587e-05/0.01357, allocations: 88.8 kB / 386.8 MB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.01372, allocations: 8 kB / 386.8 MB, free: 9.836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002444/0.01396, allocations: 125.7 kB / 386.9 MB, free: 9.676 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.477e-05/0.01401, allocations: 51.36 kB / 387 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.364e-06/0.01401, allocations: 0 / 387 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.895e-05/0.01403, allocations: 12.5 kB / 387 MB, free: 9.594 MB / 362.7 MB Notification: Performance of SimCode: time 8.11e-07/0.01403, allocations: 0 / 387 MB, free: 9.594 MB / 362.7 MB Notification: Performance of Templates: time 0.004335/0.01837, allocations: 2.196 MB / 389.2 MB, free: 7.387 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.196966664167121]