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.002028/0.002028, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002232/0.002232, allocations: 209 kB / 24.48 MB, free: 3.938 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.659/1.659, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.2259/0.2259, allocations: 44.94 MB / 359.6 MB, free: 6.055 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.002309/0.002309, allocations: 63.91 kB / 0.4942 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3482, allocations: 65.47 MB / 0.5582 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001999/0.3502, allocations: 0.4941 MB / 0.5587 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.3527, allocations: 1.104 MB / 0.5597 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.566e-05/0.3527, allocations: 0 / 0.5597 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.95e-05/0.3527, allocations: 0 / 0.5597 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.3527, allocations: 4 kB / 0.5597 GB, free: 5.738 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.002542/0.3553, allocations: 0.7314 MB / 0.5605 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.054e-05/0.3553, allocations: 0 / 0.5605 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.127e-05/0.3554, allocations: 4 kB / 0.5605 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.623e-05/0.3554, allocations: 0 / 0.5605 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.19e-05/0.3554, allocations: 4 kB / 0.5605 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-06/0.3554, allocations: 0 / 0.5605 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003485/0.3589, allocations: 2.46 MB / 0.5629 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.3589, allocations: 0 / 0.5629 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.278e-05/0.3589, allocations: 0 / 0.5629 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006207/0.3595, allocations: 347.4 kB / 0.5632 GB, free: 2.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3595, allocations: 0 / 0.5632 GB, free: 2.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3596, allocations: 4 kB / 0.5632 GB, free: 2.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3596, allocations: 0 / 0.5632 GB, free: 2.199 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.0005037/0.3601, allocations: 307.5 kB / 0.5635 GB, free: 1.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3601, allocations: 11.97 kB / 0.5635 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.3601, allocations: 0 / 0.5635 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.622e-05/0.3602, allocations: 105.2 kB / 0.5636 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.3602, allocations: 3.938 kB / 0.5636 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.3603, allocations: 0 / 0.5636 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.3604, allocations: 67.33 kB / 0.5637 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.3604, allocations: 0 / 0.5637 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/0.3604, allocations: 0 / 0.5637 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.3604, allocations: 4 kB / 0.5637 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.698e-05/0.3605, allocations: 29.64 kB / 0.5637 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/0.3606, allocations: 97.33 kB / 0.5638 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.746e-05/0.3607, allocations: 44.31 kB / 0.5638 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.016e-05/0.3607, allocations: 42.5 kB / 0.5639 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.3607, allocations: 0 / 0.5639 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/0.3608, allocations: 60.25 kB / 0.5639 GB, free: 1.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 5.54e-06/0.3608, allocations: 4.062 kB / 0.5639 GB, free: 1.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000273/0.3611, allocations: 110.8 kB / 0.564 GB, free: 1.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.3611, allocations: 89.23 kB / 0.5641 GB, free: 1.051 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.168e-05/0.3612, allocations: 97.8 kB / 0.5642 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3612, allocations: 25.7 kB / 0.5642 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.033e-05/0.3613, allocations: 80.14 kB / 0.5643 GB, free: 0.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3613, allocations: 0 / 0.5643 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.3613, allocations: 13.72 kB / 0.5643 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3615, allocations: 310.8 kB / 0.5646 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.452e-05/0.3615, allocations: 25.7 kB / 0.5647 GB, free: 480 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.313e-05/0.3615, allocations: 29.7 kB / 0.5647 GB, free: 444 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.516e-05/0.3616, allocations: 64.27 kB / 0.5647 GB, free: 364 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3616, allocations: 4.062 kB / 0.5648 GB, free: 360 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001059/0.3617, allocations: 96.97 kB / 0.5648 GB, free: 244 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.3617, allocations: 29.7 kB / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3618, allocations: 0 / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3618, allocations: 0 / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.3618, allocations: 0 / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3618, allocations: 0 / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.3618, allocations: 4 kB / 0.5649 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.3618, allocations: 3.984 kB / 0.5649 GB, free: 200 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.0001106/0.3619, allocations: 135.5 kB / 0.565 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.3619, allocations: 11.97 kB / 0.565 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.466e-05/0.3619, allocations: 6.984 kB / 0.565 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3619, allocations: 0 / 0.565 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.362, allocations: 0 / 0.565 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.362, allocations: 3.938 kB / 0.565 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.3621, allocations: 105.2 kB / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3621, allocations: 0 / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.3621, allocations: 0 / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.3621, allocations: 3.938 kB / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3621, allocations: 0 / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3621, allocations: 0 / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3621, allocations: 4 kB / 0.5651 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.3622, allocations: 120.5 kB / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.959e-06/0.3623, allocations: 3.938 kB / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.3623, allocations: 4 kB / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.03e-05/0.3623, allocations: 0 / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.893e-05/0.3623, allocations: 0 / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.3623, allocations: 0 / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.709e-05/0.3624, allocations: 83.28 kB / 0.5653 GB, free: 15.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3624, allocations: 0 / 0.5653 GB, free: 15.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004581/0.3628, allocations: 47.8 kB / 0.5654 GB, free: 15.6 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.001757/0.3646, allocations: 0.5643 MB / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.3647, allocations: 106.8 kB / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.3647, allocations: 64 / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.388e-05/0.3648, allocations: 101 kB / 0.5661 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.3649, allocations: 0 / 0.5661 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.3652, allocations: 128.4 kB / 0.5663 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.098e-05/0.3653, allocations: 55.36 kB / 0.5663 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.3653, allocations: 11.42 kB / 0.5663 GB, free: 14.61 MB / 414.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3653, allocations: 4 kB / 0.5663 GB, free: 14.61 MB / 414.1 MB Notification: Performance of Templates: time 0.005692/0.371, allocations: 2.587 MB / 0.5689 GB, free: 12.02 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/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: 8.525196943897754]