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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, allocations: 120 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002314/0.002314, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 230.4 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 46.93 MB / 357.7 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 75.89 kB / 0.4916 GB, free: 7.766 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1245, allocations: 66.04 MB / 0.5561 GB, free: 5.594 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001497/0.1259, allocations: 499.4 kB / 0.5566 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.128, allocations: 1.157 MB / 0.5577 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.128, allocations: 0 / 0.5577 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.951e-05/0.128, allocations: 4 kB / 0.5577 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.128, allocations: 0 / 0.5577 GB, free: 3.934 MB / 414.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.002123/0.1301, allocations: 0.6805 MB / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.25e-05/0.1302, allocations: 0 / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.53e-05/0.1302, allocations: 4 kB / 0.5584 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.155e-05/0.1303, allocations: 7.984 kB / 0.5584 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.856e-05/0.1303, allocations: 0 / 0.5584 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.102e-06/0.1303, allocations: 0 / 0.5584 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002939/0.1332, allocations: 2.457 MB / 0.5608 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-06/0.1332, allocations: 0 / 0.5608 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.1332, allocations: 0 / 0.5608 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004126/0.1337, allocations: 363.3 kB / 0.5612 GB, free: 440 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1337, allocations: 0 / 0.5612 GB, free: 440 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1337, allocations: 0 / 0.5612 GB, free: 440 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1337, allocations: 0 / 0.5612 GB, free: 440 kB / 414.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.0004714/0.1341, allocations: 384.7 kB / 0.5615 GB, free: 0 / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.1342, allocations: 8.078 kB / 0.5615 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.491e-05/0.1342, allocations: 4 kB / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.624e-05/0.1343, allocations: 30.56 kB / 0.5616 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.735e-05/0.1343, allocations: 4 kB / 0.5616 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.1344, allocations: 163 kB / 0.5617 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1344, allocations: 0 / 0.5617 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.1344, allocations: 3.938 kB / 0.5617 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.459e-05/0.1345, allocations: 41.58 kB / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.1345, allocations: 0 / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.1345, allocations: 0 / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.1345, allocations: 0 / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.609e-05/0.1345, allocations: 0 / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.1347, allocations: 149.7 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.843e-05/0.1347, allocations: 22.52 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.762e-05/0.1348, allocations: 8.844 kB / 0.562 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.1348, allocations: 7.984 kB / 0.562 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/0.1348, allocations: 64.3 kB / 0.562 GB, free: 15.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1348, allocations: 0 / 0.562 GB, free: 15.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001881/0.135, allocations: 63.41 kB / 0.5621 GB, free: 15.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.1351, allocations: 77.11 kB / 0.5622 GB, free: 15.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.881e-05/0.1351, allocations: 97.8 kB / 0.5622 GB, free: 15.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.1352, allocations: 25.7 kB / 0.5623 GB, free: 15.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.292e-05/0.1352, allocations: 80.14 kB / 0.5623 GB, free: 14.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.1352, allocations: 4.125 kB / 0.5624 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.1352, allocations: 13.72 kB / 0.5624 GB, free: 14.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1354, allocations: 310.8 kB / 0.5627 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.1354, allocations: 0 / 0.5627 GB, free: 14.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.015e-06/0.1354, allocations: 4 kB / 0.5627 GB, free: 14.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.159e-05/0.1354, allocations: 64.2 kB / 0.5627 GB, free: 14.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1354, allocations: 0 / 0.5627 GB, free: 14.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.032e-05/0.1355, allocations: 71.39 kB / 0.5628 GB, free: 14.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.1356, allocations: 29.7 kB / 0.5628 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1356, allocations: 4 kB / 0.5628 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1356, allocations: 0 / 0.5628 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1356, allocations: 3.938 kB / 0.5628 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1356, allocations: 0 / 0.5628 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.357e-05/0.1356, allocations: 0 / 0.5628 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-06/0.1356, allocations: 0 / 0.5628 GB, free: 14.44 MB / 430.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.463e-05/0.1357, allocations: 143.5 kB / 0.563 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.1357, allocations: 7.969 kB / 0.563 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.106e-05/0.1357, allocations: 7.062 kB / 0.563 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1357, allocations: 0 / 0.563 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1357, allocations: 0 / 0.563 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.1357, allocations: 0 / 0.563 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1358, allocations: 149.6 kB / 0.5631 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1358, allocations: 3.984 kB / 0.5631 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-06/0.1358, allocations: 3.938 kB / 0.5631 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.1358, allocations: 0 / 0.5631 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1358, allocations: 4 kB / 0.5631 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1358, allocations: 0 / 0.5631 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1358, allocations: 8 kB / 0.5631 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.966e-05/0.1359, allocations: 90.77 kB / 0.5632 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.873e-05/0.136, allocations: 77.11 kB / 0.5633 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.136, allocations: 4 kB / 0.5633 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-06/0.136, allocations: 0 / 0.5633 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-06/0.136, allocations: 0 / 0.5633 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.136, allocations: 0 / 0.5633 GB, free: 13.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.425e-05/0.136, allocations: 79.31 kB / 0.5634 GB, free: 13.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.136, allocations: 0 / 0.5634 GB, free: 13.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003408/0.1364, allocations: 59.73 kB / 0.5634 GB, free: 13.71 MB / 430.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.001821/0.1382, allocations: 1.06 MB / 0.5645 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.1383, allocations: 55.41 kB / 0.5645 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1383, allocations: 0 / 0.5645 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.667e-05/0.1383, allocations: 59.41 kB / 0.5646 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.1385, allocations: 7.938 kB / 0.5646 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000381/0.1389, allocations: 138.5 kB / 0.5647 GB, free: 12.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.1391, allocations: 0.6729 MB / 0.5654 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.486e-06/0.1391, allocations: 3.984 kB / 0.5654 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.308e-05/0.1392, allocations: 11.44 kB / 0.5654 GB, free: 11.63 MB / 430.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1392, allocations: 0 / 0.5654 GB, free: 11.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/0.1572, allocations: 3.087 MB / 0.5684 GB, free: 8.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.806/7.963, allocations: 12.66 kB / 0.5684 GB, free: 8.609 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 10.786890586023219]