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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 106.9 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.8 MB, free: 15.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2122/0.2122, allocations: 44.17 MB / 336.1 MB, free: 3.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 69.3 kB / 407.7 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.113, allocations: 60.81 MB / 468.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002317/0.1154, allocations: 0.537 MB / 469 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00271/0.1181, allocations: 1.196 MB / 470.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.825e-05/0.1182, allocations: 4 kB / 470.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.558e-05/0.1182, allocations: 0 / 470.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.294e-06/0.1182, allocations: 0 / 470.2 MB, free: 13.14 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.002338/0.1206, allocations: 0.6445 MB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.448e-05/0.1206, allocations: 0 / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.139e-05/0.1207, allocations: 0 / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.39e-05/0.1207, allocations: 0 / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.985e-05/0.1207, allocations: 4 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.739e-06/0.1207, allocations: 0 / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0034/0.1241, allocations: 2.597 MB / 473.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.1242, allocations: 0 / 473.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.194e-05/0.1242, allocations: 0 / 473.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000605/0.1248, allocations: 443.2 kB / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1248, allocations: 0 / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1248, allocations: 0 / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.1248, allocations: 0 / 473.9 MB, free: 9.457 MB / 350.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.0004702/0.1253, allocations: 373.1 kB / 474.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.1254, allocations: 12.03 kB / 474.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.1254, allocations: 3.938 kB / 474.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.1255, allocations: 159.1 kB / 474.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.1255, allocations: 0 / 474.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.846e-06/0.1256, allocations: 4 kB / 474.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.435e-05/0.1256, allocations: 33.69 kB / 474.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1257, allocations: 0 / 474.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.1257, allocations: 0 / 474.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.1257, allocations: 0 / 474.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.486e-05/0.1257, allocations: 15.88 kB / 474.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.1259, allocations: 145.7 kB / 474.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.436e-05/0.1259, allocations: 14.58 kB / 474.7 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.732e-05/0.126, allocations: 16.88 kB / 474.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.126, allocations: 3.984 kB / 474.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.126, allocations: 56.27 kB / 474.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.126, allocations: 4 kB / 474.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001738/0.1262, allocations: 67.34 kB / 474.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.1263, allocations: 81.09 kB / 474.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.765e-05/0.1263, allocations: 93.8 kB / 475 MB, free: 8.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.1263, allocations: 25.7 kB / 475 MB, free: 8.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.402e-05/0.1264, allocations: 84.12 kB / 475.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.1264, allocations: 7.938 kB / 475.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.1264, allocations: 9.719 kB / 475.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1266, allocations: 315 kB / 475.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.1266, allocations: 4 kB / 475.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-06/0.1266, allocations: 0 / 475.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.456e-05/0.1266, allocations: 64.27 kB / 475.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1266, allocations: 0 / 475.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.469e-05/0.1267, allocations: 63.33 kB / 475.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.1268, allocations: 33.7 kB / 475.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1268, allocations: 0 / 475.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.1268, allocations: 4.094 kB / 475.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1268, allocations: 0 / 475.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.1268, allocations: 0 / 475.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/0.1268, allocations: 3.938 kB / 475.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-06/0.1268, allocations: 4 kB / 475.6 MB, free: 7.516 MB / 350.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 9.41e-05/0.1269, allocations: 139.5 kB / 475.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.719e-06/0.127, allocations: 3.938 kB / 475.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.184e-05/0.127, allocations: 7.078 kB / 475.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.127, allocations: 4 kB / 475.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.127, allocations: 4 kB / 475.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.127, allocations: 3.938 kB / 475.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.1271, allocations: 145.7 kB / 475.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1271, allocations: 0 / 475.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.1271, allocations: 0 / 475.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.1271, allocations: 4 kB / 475.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.1272, allocations: 0 / 475.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.1272, allocations: 0 / 475.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1272, allocations: 3.938 kB / 475.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.1273, allocations: 102.7 kB / 476 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.1274, allocations: 77.11 kB / 476.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.1274, allocations: 4 kB / 476.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.1274, allocations: 0 / 476.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.1274, allocations: 3.938 kB / 476.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.1274, allocations: 4 kB / 476.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.005e-05/0.1275, allocations: 75.28 kB / 476.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1275, allocations: 0 / 476.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004259/0.1279, allocations: 51.98 kB / 476.2 MB, free: 6.789 MB / 350.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.001846/0.1297, allocations: 0.535 MB / 476.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001141/0.1299, allocations: 63.34 kB / 476.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1299, allocations: 0 / 476.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.214e-05/0.1299, allocations: 55.41 kB / 476.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1301, allocations: 11.88 kB / 476.9 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002107/0.1303, allocations: 90.53 kB / 477 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.1306, allocations: 0.6731 MB / 477.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.853e-06/0.1306, allocations: 0 / 477.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.1306, allocations: 7.438 kB / 477.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1306, allocations: 128 / 477.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of Templates: time 0.006062/0.1367, allocations: 2.129 MB / 479.8 MB, free: 3.215 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile (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) 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) Reference file matches