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.00129/0.00129, allocations: 104.2 kB / 20.48 MB, free: 1.125 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.001385/0.001385, allocations: 214.4 kB / 23.77 MB, free: 4.332 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.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 7.727 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.2441/0.2441, allocations: 46.95 MB / 360.9 MB, free: 3.906 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.002357/0.002357, allocations: 79.86 kB / 0.4962 GB, free: 7.531 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3473, allocations: 66.08 MB / 0.5607 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.00174/0.349, allocations: 499.9 kB / 0.5612 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.3512, allocations: 1.115 MB / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.106e-05/0.3512, allocations: 0 / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.362e-05/0.3512, allocations: 0 / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.3512, allocations: 0 / 0.5623 GB, free: 2.434 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.002232/0.3535, allocations: 0.7206 MB / 0.563 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.952e-05/0.3535, allocations: 7.938 kB / 0.563 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.3536, allocations: 4 kB / 0.563 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.274e-05/0.3536, allocations: 7.969 kB / 0.563 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.318e-05/0.3536, allocations: 4 kB / 0.563 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.3536, allocations: 0 / 0.563 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.3569, allocations: 2.449 MB / 0.5654 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.219e-05/0.3569, allocations: 3.984 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.43e-05/0.3569, allocations: 4 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005181/0.3575, allocations: 351.4 kB / 0.5658 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3575, allocations: 3.938 kB / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3575, allocations: 0 / 0.5658 GB, free: 14.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.3575, allocations: 0 / 0.5658 GB, free: 14.88 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.0004594/0.3579, allocations: 291.6 kB / 0.566 GB, free: 14.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.358, allocations: 19.95 kB / 0.5661 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.135e-05/0.358, allocations: 34.56 kB / 0.5661 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.358, allocations: 0 / 0.5661 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.958e-05/0.3581, allocations: 101.2 kB / 0.5662 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3581, allocations: 4 kB / 0.5662 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.3581, allocations: 7.938 kB / 0.5662 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.807e-05/0.3582, allocations: 55.34 kB / 0.5663 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3582, allocations: 4 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.3583, allocations: 0 / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.3583, allocations: 0 / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.428e-05/0.3583, allocations: 29.69 kB / 0.5663 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001418/0.3584, allocations: 124.8 kB / 0.5664 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.274e-05/0.3585, allocations: 44.22 kB / 0.5664 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.384e-05/0.3585, allocations: 38.59 kB / 0.5665 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.3585, allocations: 0 / 0.5665 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/0.3586, allocations: 60.27 kB / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3586, allocations: 0 / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002025/0.3588, allocations: 126.7 kB / 0.5667 GB, free: 13.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.3589, allocations: 77.11 kB / 0.5667 GB, free: 13.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.939e-05/0.3589, allocations: 97.81 kB / 0.5668 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.3589, allocations: 25.7 kB / 0.5669 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.222e-05/0.359, allocations: 80.14 kB / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.359, allocations: 0 / 0.5669 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.359, allocations: 21.7 kB / 0.567 GB, free: 13.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3592, allocations: 310.8 kB / 0.5672 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.321e-05/0.3592, allocations: 25.83 kB / 0.5673 GB, free: 13.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.954e-05/0.3592, allocations: 33.7 kB / 0.5673 GB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.211e-05/0.3593, allocations: 56.27 kB / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3593, allocations: 0 / 0.5674 GB, free: 12.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.125e-05/0.3594, allocations: 105 kB / 0.5675 GB, free: 12.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.3594, allocations: 33.7 kB / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3594, allocations: 0 / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.3594, allocations: 0 / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.3594, allocations: 0 / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3594, allocations: 0 / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.3594, allocations: 4.094 kB / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.3594, allocations: 0 / 0.5675 GB, free: 12.81 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.0001076/0.3595, allocations: 139.5 kB / 0.5676 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.708e-06/0.3596, allocations: 3.938 kB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.053e-05/0.3596, allocations: 3 kB / 0.5676 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3596, allocations: 4 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3596, allocations: 3.984 kB / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3596, allocations: 0 / 0.5676 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.3597, allocations: 116.8 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3597, allocations: 7.922 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3597, allocations: 4 kB / 0.5678 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.3597, allocations: 4 kB / 0.5678 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.3597, allocations: 0 / 0.5678 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3597, allocations: 3.938 kB / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3597, allocations: 0 / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.3598, allocations: 120.5 kB / 0.5679 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.3598, allocations: 3.938 kB / 0.5679 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3598, allocations: 4 kB / 0.5679 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-06/0.3598, allocations: 3.938 kB / 0.5679 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.3599, allocations: 0 / 0.5679 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3599, allocations: 4.031 kB / 0.5679 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.286e-05/0.3599, allocations: 75.28 kB / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3599, allocations: 0 / 0.568 GB, free: 12.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.3602, allocations: 55.73 kB / 0.568 GB, free: 12.17 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.001932/0.3622, allocations: 1.105 MB / 0.5691 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.3623, allocations: 114.8 kB / 0.5692 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3623, allocations: 0 / 0.5692 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.254e-05/0.3624, allocations: 89.09 kB / 0.5693 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.3625, allocations: 3.938 kB / 0.5693 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.3629, allocations: 156.2 kB / 0.5695 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.744e-05/0.3629, allocations: 59.3 kB / 0.5695 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.3629, allocations: 0 / 0.5695 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.799e-05/0.3629, allocations: 11.56 kB / 0.5695 GB, free: 10.55 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.363, allocations: 0 / 0.5695 GB, free: 10.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03095/0.3939, allocations: 3.681 MB / 0.5731 GB, free: 6.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.77, allocations: 14.81 kB / 0.5731 GB, free: 6.957 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv","/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.845999220007798]