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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007432/0.0007432, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001002/0.001745, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006332/0.0006332, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008672/0.0015, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9584/0.9584, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.194/1.152, allocations: 52.49 MB / 238.5 MB, free: 7.633 MB / 234.7 MB " [Timeout remaining time 179] 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.1471/0.1471, allocations: 32.79 MB / 272 MB, free: 6.312 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02116/0.1682, allocations: 12.54 MB / 284.5 MB, free: 9.727 MB / 282.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.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=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 2.204e-06/2.204e-06, allocations: 0 / 285.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.789e-05, allocations: 2.312 kB / 285.8 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001402/0.00143, allocations: 0.5588 MB / 286.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.002963, allocations: 1.153 MB / 287.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.626e-05/0.002979, allocations: 0 / 287.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.338e-06/0.002983, allocations: 0 / 287.5 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.41e-07/0.002984, allocations: 0 / 287.5 MB, free: 6.727 MB / 282.7 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.001443/0.004427, allocations: 0.7157 MB / 288.3 MB, free: 6.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.398e-05/0.004481, allocations: 7.938 kB / 288.3 MB, free: 6.012 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.862e-05/0.004519, allocations: 4 kB / 288.3 MB, free: 6.008 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.444e-05/0.004554, allocations: 7.984 kB / 288.3 MB, free: 6 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.978e-05/0.004573, allocations: 0 / 288.3 MB, free: 6 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.004581, allocations: 3.938 kB / 288.3 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.006351, allocations: 1.934 MB / 290.2 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.006363, allocations: 4 kB / 290.2 MB, free: 4.059 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.856e-05/0.006382, allocations: 7.938 kB / 290.2 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003644/0.006746, allocations: 339.4 kB / 290.6 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.19e-05/0.006758, allocations: 0 / 290.6 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.006759, allocations: 0 / 290.6 MB, free: 3.719 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.006769, allocations: 0 / 290.6 MB, free: 3.719 MB / 282.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.0003779/0.007147, allocations: 329.7 kB / 290.9 MB, free: 3.367 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.007182, allocations: 11.97 kB / 290.9 MB, free: 3.355 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.007216, allocations: 8 kB / 290.9 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.25e-05/0.007279, allocations: 105.2 kB / 291 MB, free: 3.219 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.007289, allocations: 0 / 291 MB, free: 3.219 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.007298, allocations: 0 / 291 MB, free: 3.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.039e-05/0.007368, allocations: 63.39 kB / 291.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.007375, allocations: 0 / 291.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.007382, allocations: 3.938 kB / 291.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.007388, allocations: 0 / 291.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.544e-05/0.007403, allocations: 29.7 kB / 291.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.279e-05/0.007466, allocations: 53.05 kB / 291.1 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.98e-05/0.007506, allocations: 56.22 kB / 291.2 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.206e-05/0.007528, allocations: 42.61 kB / 291.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-06/0.007531, allocations: 0 / 291.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.007564, allocations: 56.27 kB / 291.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.12e-07/0.007565, allocations: 0 / 291.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001121/0.007677, allocations: 110.8 kB / 291.4 MB, free: 2.715 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.007731, allocations: 166.1 kB / 291.6 MB, free: 2.516 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.233e-05/0.007764, allocations: 93.8 kB / 291.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.007779, allocations: 29.7 kB / 291.7 MB, free: 2.379 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.958e-05/0.007799, allocations: 80.14 kB / 291.8 MB, free: 2.297 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.007822, allocations: 0 / 291.8 MB, free: 2.297 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.007849, allocations: 17.84 kB / 291.8 MB, free: 2.273 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.318e-05/0.007922, allocations: 310.8 kB / 292.1 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.363e-05/0.007936, allocations: 25.7 kB / 292.1 MB, free: 1.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.246e-05/0.007948, allocations: 33.69 kB / 292.1 MB, free: 1.891 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.817e-05/0.007986, allocations: 60.27 kB / 292.2 MB, free: 1.816 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.007988, allocations: 3.938 kB / 292.2 MB, free: 1.812 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.233e-05/0.00804, allocations: 85.05 kB / 292.3 MB, free: 1.711 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.00808, allocations: 40.34 kB / 292.3 MB, free: 1.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.008085, allocations: 0 / 292.3 MB, free: 1.668 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.008096, allocations: 4.094 kB / 292.3 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.215e-06/0.008098, allocations: 0 / 292.3 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.008102, allocations: 0 / 292.3 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.00812, allocations: 3.938 kB / 292.3 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.008128, allocations: 0 / 292.3 MB, free: 1.66 MB / 282.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 5.895e-05/0.008187, allocations: 139.5 kB / 292.5 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-06/0.008191, allocations: 4 kB / 292.5 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.052e-05/0.008202, allocations: 6.953 kB / 292.5 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.008204, allocations: 3.984 kB / 292.5 MB, free: 1.492 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.008206, allocations: 0 / 292.5 MB, free: 1.492 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.008209, allocations: 3.938 kB / 292.5 MB, free: 1.488 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.347e-05/0.008253, allocations: 65.89 kB / 292.6 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.008254, allocations: 4 kB / 292.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/0.008254, allocations: 0 / 292.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-06/0.008259, allocations: 0 / 292.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.61e-07/0.008259, allocations: 0 / 292.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-06/0.008263, allocations: 0 / 292.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.008264, allocations: 0 / 292.6 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.008266, allocations: 4 kB / 292.6 MB, free: 1.398 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.04e-05/0.008326, allocations: 120.4 kB / 292.7 MB, free: 1.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.438e-06/0.008336, allocations: 0 / 292.7 MB, free: 1.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.258e-06/0.00834, allocations: 4.031 kB / 292.7 MB, free: 1.246 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.096e-05/0.008351, allocations: 7.984 kB / 292.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-06/0.008352, allocations: 0 / 292.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.103e-06/0.008359, allocations: 4.859 kB / 292.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008359, allocations: 0 / 292.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002471/0.008606, allocations: 55.73 kB / 292.8 MB, free: 1.176 MB / 282.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.001205/0.009811, allocations: 0.625 MB / 293.4 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.009937, allocations: 123.6 kB / 293.5 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.009942, allocations: 0 / 293.5 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.911e-05/0.009981, allocations: 89.97 kB / 293.6 MB, free: 432 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.656e-05/0.01004, allocations: 8.172 kB / 293.6 MB, free: 424 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000177/0.01021, allocations: 123.8 kB / 293.7 MB, free: 264 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.764e-05/0.01025, allocations: 59.34 kB / 293.8 MB, free: 184 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.191e-06/0.01026, allocations: 0 / 293.8 MB, free: 184 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/0.0103, allocations: 51.38 kB / 293.8 MB, free: 132 kB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.0103, allocations: 0 / 293.8 MB, free: 132 kB / 282.7 MB Notification: Performance of Templates: time 0.004175/0.01447, allocations: 2.422 MB / 296.2 MB, free: 13.7 MB / 298.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8018708117306232]