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.001836/0.001836, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002273/0.002273, allocations: 213 kB / 23.73 MB, free: 4.164 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.406/1.406, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.2324/0.2324, allocations: 46.95 MB / 360.8 MB, free: 3.922 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 75.88 kB / 0.4961 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.367, allocations: 66.08 MB / 0.5607 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00186/0.3688, allocations: 0.4892 MB / 0.5612 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002168/0.371, allocations: 1.111 MB / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.993e-05/0.371, allocations: 0 / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.371, allocations: 0 / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.371, allocations: 0 / 0.5622 GB, free: 2.414 MB / 398.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.002306/0.3733, allocations: 0.7331 MB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.406e-05/0.3734, allocations: 7.984 kB / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.3734, allocations: 4 kB / 0.563 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.606e-05/0.3735, allocations: 0 / 0.563 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.3735, allocations: 4 kB / 0.563 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.71e-06/0.3735, allocations: 3.938 kB / 0.563 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003312/0.3768, allocations: 2.453 MB / 0.5654 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.444e-05/0.3768, allocations: 8 kB / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.176e-05/0.3768, allocations: 0 / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004907/0.3773, allocations: 355.4 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3773, allocations: 0 / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3773, allocations: 0 / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.3773, allocations: 0 / 0.5657 GB, free: 14.86 MB / 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.0004391/0.3778, allocations: 299.5 kB / 0.566 GB, free: 14.53 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3778, allocations: 8.031 kB / 0.566 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.727e-05/0.3779, allocations: 30.56 kB / 0.566 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.292e-05/0.3779, allocations: 0 / 0.566 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.378, allocations: 113.2 kB / 0.5661 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.378, allocations: 7.938 kB / 0.5662 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.378, allocations: 7.875 kB / 0.5662 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.3781, allocations: 55.41 kB / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.3781, allocations: 0 / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-06/0.3781, allocations: 0 / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.3781, allocations: 0 / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.3e-05/0.3782, allocations: 25.7 kB / 0.5662 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001532/0.3783, allocations: 124.8 kB / 0.5664 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.098e-05/0.3784, allocations: 44.22 kB / 0.5664 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.121e-05/0.3784, allocations: 38.59 kB / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-06/0.3784, allocations: 4 kB / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/0.3785, allocations: 56.27 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3785, allocations: 0 / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002128/0.3787, allocations: 118.8 kB / 0.5666 GB, free: 13.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.3788, allocations: 81.11 kB / 0.5667 GB, free: 13.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.797e-05/0.3788, allocations: 93.81 kB / 0.5668 GB, free: 13.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3789, allocations: 25.7 kB / 0.5668 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.611e-05/0.3789, allocations: 80.14 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.3789, allocations: 0 / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.3789, allocations: 13.72 kB / 0.5669 GB, free: 13.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3791, allocations: 323 kB / 0.5672 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.9e-05/0.3791, allocations: 29.64 kB / 0.5672 GB, free: 13.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.09e-05/0.3792, allocations: 33.64 kB / 0.5673 GB, free: 13.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.687e-05/0.3792, allocations: 60.27 kB / 0.5673 GB, free: 12.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3792, allocations: 0 / 0.5673 GB, free: 12.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.913e-05/0.3793, allocations: 93.03 kB / 0.5674 GB, free: 12.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/0.3794, allocations: 33.7 kB / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3794, allocations: 0 / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3794, allocations: 0 / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3794, allocations: 4.094 kB / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.3794, allocations: 0 / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.3794, allocations: 0 / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3794, allocations: 4 kB / 0.5674 GB, free: 12.79 MB / 414.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.0001034/0.3795, allocations: 136.8 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.3795, allocations: 11.92 kB / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.353e-05/0.3795, allocations: 6.984 kB / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3795, allocations: 0 / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3795, allocations: 0 / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.3795, allocations: 0 / 0.5676 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.3797, allocations: 124.8 kB / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3797, allocations: 7.938 kB / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3797, allocations: 0 / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.3797, allocations: 0 / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.3797, allocations: 3.938 kB / 0.5677 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3797, allocations: 0 / 0.5677 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3797, allocations: 3.984 kB / 0.5677 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.3798, allocations: 112.5 kB / 0.5678 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-06/0.3798, allocations: 3.938 kB / 0.5678 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.3799, allocations: 7.984 kB / 0.5678 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.3799, allocations: 0 / 0.5678 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.3799, allocations: 4.031 kB / 0.5678 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.3799, allocations: 3.938 kB / 0.5678 GB, free: 12.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.355e-05/0.3799, allocations: 75.28 kB / 0.5679 GB, free: 12.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3799, allocations: 4 kB / 0.5679 GB, free: 12.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.3803, allocations: 51.73 kB / 0.568 GB, free: 12.15 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.002023/0.3823, allocations: 1.101 MB / 0.569 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.3824, allocations: 114.8 kB / 0.5692 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3824, allocations: 0 / 0.5692 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.72e-05/0.3825, allocations: 89.05 kB / 0.5692 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.3826, allocations: 7.922 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003991/0.383, allocations: 156.2 kB / 0.5694 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.153e-05/0.3831, allocations: 59.42 kB / 0.5695 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.911e-06/0.3831, allocations: 4 kB / 0.5695 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.795e-05/0.3831, allocations: 11.38 kB / 0.5695 GB, free: 10.52 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3831, allocations: 0 / 0.5695 GB, free: 10.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.4146, allocations: 3.592 MB / 0.573 GB, free: 7.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.94, allocations: 4 kB / 0.573 GB, free: 7.02 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.968809525016695]