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.001781/0.001781, allocations: 110 kB / 20.43 MB, free: 1.453 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.002194/0.002194, allocations: 212.5 kB / 23.74 MB, free: 4.66 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.521/1.521, allocations: 230.5 MB / 257.4 MB, free: 8.004 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.227/0.227, allocations: 46.92 MB / 360.8 MB, free: 4.191 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.002293/0.002293, allocations: 83.86 kB / 0.4962 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.4064, allocations: 66.08 MB / 0.5607 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002122/0.4085, allocations: 493 kB / 0.5612 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.4111, allocations: 1.173 MB / 0.5623 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.553e-05/0.4111, allocations: 0 / 0.5623 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.556e-05/0.4112, allocations: 0 / 0.5623 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.833e-06/0.4112, allocations: 0 / 0.5623 GB, free: 2.645 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.002476/0.4136, allocations: 0.7469 MB / 0.5631 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.195e-05/0.4137, allocations: 4 kB / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.038e-05/0.4138, allocations: 0 / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.573e-05/0.4138, allocations: 0 / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.799e-05/0.4138, allocations: 7.984 kB / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-06/0.4138, allocations: 0 / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004042/0.4179, allocations: 2.507 MB / 0.5655 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.932e-05/0.4179, allocations: 7.922 kB / 0.5655 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.219e-05/0.4179, allocations: 0 / 0.5655 GB, free: 15.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006929/0.4186, allocations: 367.3 kB / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.4186, allocations: 0 / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4186, allocations: 0 / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.4186, allocations: 0 / 0.5659 GB, free: 15.01 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.0006058/0.4192, allocations: 303.6 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.4193, allocations: 12.03 kB / 0.5662 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.278e-05/0.4193, allocations: 30.56 kB / 0.5662 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.4194, allocations: 0 / 0.5662 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.4195, allocations: 105.2 kB / 0.5663 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.4195, allocations: 0 / 0.5663 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.4195, allocations: 7.938 kB / 0.5663 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.4197, allocations: 29.69 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.4197, allocations: 0 / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.4197, allocations: 7.922 kB / 0.5664 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.4197, allocations: 4 kB / 0.5664 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.21e-05/0.4197, allocations: 4 kB / 0.5664 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.4199, allocations: 116.8 kB / 0.5665 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.558e-05/0.4199, allocations: 22.55 kB / 0.5665 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.882e-05/0.4199, allocations: 8.797 kB / 0.5665 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.42, allocations: 0 / 0.5665 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.655e-05/0.42, allocations: 68.25 kB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.42, allocations: 0 / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002087/0.4202, allocations: 63.47 kB / 0.5666 GB, free: 14.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.562e-05/0.4203, allocations: 77.11 kB / 0.5667 GB, free: 13.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.049e-05/0.4204, allocations: 93.81 kB / 0.5668 GB, free: 13.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.4204, allocations: 29.7 kB / 0.5668 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.093e-05/0.4204, allocations: 80.14 kB / 0.5669 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.4204, allocations: 0 / 0.5669 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.4205, allocations: 17.64 kB / 0.5669 GB, free: 13.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.4207, allocations: 323 kB / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.042e-05/0.4207, allocations: 0 / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.14e-06/0.4207, allocations: 0 / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.747e-05/0.4208, allocations: 60.27 kB / 0.5673 GB, free: 13.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4208, allocations: 0 / 0.5673 GB, free: 13.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.103e-05/0.4208, allocations: 67.33 kB / 0.5673 GB, free: 13.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.4209, allocations: 33.7 kB / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4209, allocations: 96 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.4209, allocations: 4 kB / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.4209, allocations: 0 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4209, allocations: 0 / 0.5674 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.806e-05/0.4209, allocations: 11.88 kB / 0.5674 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.4209, allocations: 0 / 0.5674 GB, free: 13.22 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.0001062/0.421, allocations: 132.9 kB / 0.5675 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.4211, allocations: 11.92 kB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.187e-05/0.4211, allocations: 3 kB / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4211, allocations: 0 / 0.5675 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4211, allocations: 4 kB / 0.5675 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4211, allocations: 0 / 0.5675 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.4212, allocations: 116.8 kB / 0.5677 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4212, allocations: 7.875 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.4212, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.4212, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.4212, allocations: 3.984 kB / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.4212, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4212, allocations: 0 / 0.5677 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.4213, allocations: 90.84 kB / 0.5677 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.127e-06/0.4213, allocations: 7.922 kB / 0.5678 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.4214, allocations: 4 kB / 0.5678 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.4214, allocations: 4 kB / 0.5678 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.4214, allocations: 3.938 kB / 0.5678 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.4214, allocations: 0 / 0.5678 GB, free: 12.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.921e-05/0.4214, allocations: 75.28 kB / 0.5678 GB, free: 12.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4214, allocations: 0 / 0.5678 GB, free: 12.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004467/0.4219, allocations: 59.77 kB / 0.5679 GB, free: 12.62 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.001993/0.4239, allocations: 1.063 MB / 0.5689 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001282/0.424, allocations: 63.39 kB / 0.569 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.424, allocations: 4 kB / 0.569 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.163e-05/0.424, allocations: 55.34 kB / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.4242, allocations: 7.938 kB / 0.5691 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004611/0.4246, allocations: 134.4 kB / 0.5692 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.4251, allocations: 0.6846 MB / 0.5699 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.723e-06/0.4251, allocations: 0 / 0.5699 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.748e-05/0.4251, allocations: 7.438 kB / 0.5699 GB, free: 10.54 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4251, allocations: 0 / 0.5699 GB, free: 10.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.4581, allocations: 3.183 MB / 0.573 GB, free: 7.449 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.58, allocations: 14.73 kB / 0.573 GB, free: 7.438 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.522627369966358]