Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001554/0.001554, allocations: 93.78 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002143/0.002143, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2373/0.2373, allocations: 45.91 MB / 344 MB, free: 12.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 4 kB / 417.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1253, allocations: 63.45 MB / 481.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.0005678/0.1259, allocations: 209.2 kB / 481.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.1276, allocations: 1.035 MB / 482.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.47e-05/0.1276, allocations: 0 / 482.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.676e-06/0.1276, allocations: 3.938 kB / 482.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.298e-06/0.1276, allocations: 0 / 482.6 MB, free: 4.25 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.001325/0.1289, allocations: 0.6075 MB / 483.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.76e-05/0.129, allocations: 4 kB / 483.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.051e-05/0.129, allocations: 4 kB / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.136e-05/0.129, allocations: 0 / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.41e-05/0.1291, allocations: 0 / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-06/0.1291, allocations: 0 / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007105/0.1298, allocations: 0.5304 MB / 483.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.1298, allocations: 3.984 kB / 483.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.438e-05/0.1298, allocations: 29.64 kB / 483.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.1302, allocations: 267.6 kB / 484 MB, free: 2.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1302, allocations: 0 / 484 MB, free: 2.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1302, allocations: 0 / 484 MB, free: 2.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1302, allocations: 0 / 484 MB, free: 2.805 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.000353/0.1305, allocations: 389 kB / 484.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.1306, allocations: 8.031 kB / 484.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.126e-05/0.1306, allocations: 0 / 484.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.701e-05/0.1307, allocations: 171.3 kB / 484.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.1307, allocations: 7.938 kB / 484.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.1307, allocations: 0 / 484.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.344e-05/0.1308, allocations: 33.69 kB / 484.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1308, allocations: 0 / 484.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1308, allocations: 0 / 484.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1308, allocations: 0 / 484.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.573e-05/0.1309, allocations: 0 / 484.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.131, allocations: 145.6 kB / 484.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.171e-05/0.1311, allocations: 30.55 kB / 484.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-06/0.1311, allocations: 0 / 484.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.1311, allocations: 60.25 kB / 484.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1311, allocations: 0 / 484.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001797/0.1313, allocations: 59.47 kB / 484.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.1314, allocations: 77.11 kB / 485 MB, free: 1.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.527e-05/0.1315, allocations: 93.86 kB / 485.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1315, allocations: 29.83 kB / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.942e-05/0.1315, allocations: 84.14 kB / 485.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.1315, allocations: 11.86 kB / 485.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.1316, allocations: 0 / 485.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1317, allocations: 314.8 kB / 485.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.926e-06/0.1317, allocations: 3.938 kB / 485.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-06/0.1317, allocations: 4 kB / 485.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.001e-05/0.1317, allocations: 25.7 kB / 485.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1317, allocations: 64 / 485.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.655e-05/0.1318, allocations: 67.36 kB / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.62e-05/0.1319, allocations: 33.69 kB / 485.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1319, allocations: 0 / 485.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.1319, allocations: 0 / 485.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1319, allocations: 0 / 485.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.1319, allocations: 4 kB / 485.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.1319, allocations: 0 / 485.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.1319, allocations: 4 kB / 485.7 MB, free: 0.9258 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.72e-05/0.132, allocations: 139.6 kB / 485.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.132, allocations: 3.953 kB / 485.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.424e-06/0.132, allocations: 3.125 kB / 485.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.132, allocations: 0 / 485.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1321, allocations: 3.984 kB / 485.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.1321, allocations: 0 / 485.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.007e-05/0.1322, allocations: 149.7 kB / 486 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1322, allocations: 3.938 kB / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.1322, allocations: 4 kB / 486 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1322, allocations: 3.953 kB / 486 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.1322, allocations: 0 / 486 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1322, allocations: 4 kB / 486 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1322, allocations: 0 / 486 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.439e-05/0.1323, allocations: 90.83 kB / 486.1 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-05/0.1323, allocations: 81.09 kB / 486.1 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.1324, allocations: 3.953 kB / 486.2 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.1324, allocations: 7.984 kB / 486.2 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.24e-05/0.1324, allocations: 0 / 486.2 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-06/0.1324, allocations: 8.031 kB / 486.2 MB, free: 332 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.404e-05/0.1325, allocations: 75.28 kB / 486.2 MB, free: 256 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1325, allocations: 0 / 486.2 MB, free: 256 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003959/0.1329, allocations: 87.98 kB / 486.3 MB, free: 168 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007764/0.1336, allocations: 372.7 kB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.016e-05/0.1337, allocations: 67.33 kB / 486.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1337, allocations: 4.062 kB / 486.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.947e-05/0.1338, allocations: 55.41 kB / 486.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.118e-05/0.1339, allocations: 7.938 kB / 486.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001615/0.134, allocations: 70.7 kB / 486.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1344, allocations: 0.677 MB / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.1344, allocations: 0 / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.029e-05/0.1344, allocations: 7.438 kB / 487.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1344, allocations: 0 / 487.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Templates: time 0.007459/0.1419, allocations: 3.109 MB / 490.7 MB, free: 11.77 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches