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.001857/0.001857, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001991/0.001991, allocations: 165.3 kB / 24.27 MB, free: 156 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.54/1.54, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.3402/0.3402, allocations: 34.26 MB / 295.3 MB, free: 0.6797 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.723e-06/1.723e-06, allocations: 0 / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.091e-05/3.263e-05, allocations: 2.312 kB / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002358/0.002391, allocations: 0.4932 MB / 377.8 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00312/0.005511, allocations: 1.135 MB / 378.9 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.294e-05/0.005534, allocations: 0 / 378.9 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.227e-05/0.005546, allocations: 0 / 378.9 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.561e-06/0.005552, allocations: 4 kB / 378.9 MB, free: 1.348 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.003107/0.008659, allocations: 0.749 MB / 379.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.284e-05/0.008722, allocations: 7.984 kB / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.098e-05/0.008753, allocations: 0 / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.278e-05/0.008786, allocations: 0 / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.865e-05/0.008804, allocations: 0 / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.133e-06/0.008811, allocations: 4 kB / 379.7 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005358/0.01417, allocations: 2.462 MB / 382.1 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.832e-05/0.01419, allocations: 7.984 kB / 382.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.01422, allocations: 4 kB / 382.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007976/0.01502, allocations: 367.4 kB / 382.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.01502, allocations: 0 / 382.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.01502, allocations: 0 / 382.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.01503, allocations: 0 / 382.5 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.0006589/0.01569, allocations: 405.5 kB / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.01573, allocations: 15.97 kB / 382.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.01578, allocations: 0 / 382.9 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.0159, allocations: 112 kB / 383 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.01592, allocations: 4 kB / 383 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.01593, allocations: 0 / 383 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.01605, allocations: 63.34 kB / 383.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.01606, allocations: 0 / 383.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.01607, allocations: 0 / 383.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.01608, allocations: 3.984 kB / 383.1 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.463e-05/0.01612, allocations: 29.69 kB / 383.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.0163, allocations: 112.6 kB / 383.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.0164, allocations: 52.7 kB / 383.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.903e-05/0.01645, allocations: 37.48 kB / 383.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.01646, allocations: 0 / 383.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.071e-05/0.01654, allocations: 59.09 kB / 383.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.01655, allocations: 4 kB / 383.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002834/0.01683, allocations: 126.7 kB / 383.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.01691, allocations: 77.11 kB / 383.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.01702, allocations: 146.2 kB / 383.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.01704, allocations: 25.7 kB / 383.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.01712, allocations: 130.9 kB / 383.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.01714, allocations: 3.984 kB / 383.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.01719, allocations: 19.38 kB / 383.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003267/0.01752, allocations: 496.1 kB / 384.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/0.01756, allocations: 33.7 kB / 384.4 MB, free: 11.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.01759, allocations: 29.83 kB / 384.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.738e-05/0.01767, allocations: 63.09 kB / 384.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.01767, allocations: 0 / 384.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001289/0.0178, allocations: 93.09 kB / 384.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.01785, allocations: 29.7 kB / 384.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.01785, allocations: 3.938 kB / 384.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.01788, allocations: 7.938 kB / 384.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.01788, allocations: 0 / 384.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.01788, allocations: 0 / 384.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.0179, allocations: 4.094 kB / 384.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.0179, allocations: 0 / 384.6 MB, free: 11.31 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.0001578/0.01806, allocations: 190.2 kB / 384.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.01808, allocations: 3.953 kB / 384.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.145e-05/0.01809, allocations: 6.938 kB / 384.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.01809, allocations: 0 / 384.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.0181, allocations: 4 kB / 384.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.0181, allocations: 0 / 384.8 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.01822, allocations: 104.6 kB / 384.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01822, allocations: 0 / 384.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.376e-06/0.01823, allocations: 7.984 kB / 384.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.01823, allocations: 0 / 384.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.01824, allocations: 8 kB / 384.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.01825, allocations: 3.938 kB / 384.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01825, allocations: 0 / 384.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.01844, allocations: 127.8 kB / 385.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-06/0.01845, allocations: 4 kB / 385.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.01846, allocations: 4 kB / 385.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.76e-05/0.01848, allocations: 3.938 kB / 385.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.61e-05/0.0185, allocations: 0 / 385.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.0185, allocations: 0 / 385.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.969e-05/0.01858, allocations: 127.2 kB / 385.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01858, allocations: 0 / 385.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004966/0.01908, allocations: 51.8 kB / 385.3 MB, free: 10.59 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.002361/0.02144, allocations: 0.5623 MB / 385.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.0216, allocations: 122.5 kB / 385.9 MB, free: 9.957 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.0216, allocations: 0 / 385.9 MB, free: 9.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.002e-05/0.02168, allocations: 92.78 kB / 386 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.0001183/0.0218, allocations: 0 / 386 MB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002602/0.02206, allocations: 129.5 kB / 386.2 MB, free: 9.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.931e-05/0.02212, allocations: 55.34 kB / 386.2 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.14e-06/0.02213, allocations: 0 / 386.2 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.02216, allocations: 12.5 kB / 386.2 MB, free: 9.594 MB / 362.7 MB Notification: Performance of SimCode: time 5.82e-07/0.02216, allocations: 4.125 kB / 386.2 MB, free: 9.59 MB / 362.7 MB Notification: Performance of Templates: time 0.006441/0.0286, allocations: 2.199 MB / 388.4 MB, free: 7.383 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.062932025990449]