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.001018/0.001018, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 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.002179/0.002179, allocations: 156.9 kB / 23.94 MB, free: 0.6133 MB / 18.57 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 0.9527/0.9527, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.2489/0.2489, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 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 1.853e-06/1.853e-06, allocations: 0 / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.162e-05/2.347e-05, allocations: 4.812 kB / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001119/0.001142, allocations: 0.497 MB / 442.6 MB, free: 1.105 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1622/0.1633, allocations: 1.114 MB / 443.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.1634, allocations: 0 / 443.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.1634, allocations: 0 / 443.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.1634, allocations: 3.844 kB / 443.7 MB, free: 43.11 MB / 410.7 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.001474/0.1648, allocations: 0.7348 MB / 444.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.17e-05/0.1649, allocations: 1.75 kB / 444.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.955e-05/0.1649, allocations: 3.094 kB / 444.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.469e-05/0.1649, allocations: 3.625 kB / 444.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.668e-05/0.165, allocations: 2.438 kB / 444.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.071e-06/0.165, allocations: 0 / 444.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.1664, allocations: 2.462 MB / 447 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-06/0.1664, allocations: 0 / 447 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.695e-05/0.1665, allocations: 9.578 kB / 447 MB, free: 42.88 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.1667, allocations: 374.6 kB / 447.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1668, allocations: 2.938 kB / 447.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1668, allocations: 0 / 447.3 MB, free: 42.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1668, allocations: 0 / 447.3 MB, free: 42.86 MB / 410.7 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.0002472/0.167, allocations: 299.2 kB / 447.6 MB, free: 42.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.167, allocations: 8.312 kB / 447.6 MB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.816e-05/0.1671, allocations: 34.22 kB / 447.7 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.352e-05/0.1671, allocations: 0 / 447.7 MB, free: 42.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.571e-05/0.1671, allocations: 104 kB / 447.8 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.1671, allocations: 7.328 kB / 447.8 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-06/0.1671, allocations: 5.562 kB / 447.8 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.153e-05/0.1672, allocations: 54.78 kB / 447.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.1672, allocations: 2.875 kB / 447.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1672, allocations: 3.938 kB / 447.8 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.1672, allocations: 3.938 kB / 447.8 MB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.986e-05/0.1672, allocations: 29.73 kB / 447.9 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.903e-05/0.1673, allocations: 122.8 kB / 448 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.426e-05/0.1673, allocations: 47 kB / 448 MB, free: 42.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.1674, allocations: 33.47 kB / 448.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.1674, allocations: 4 kB / 448.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.1674, allocations: 59.08 kB / 448.1 MB, free: 41.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1674, allocations: 0 / 448.1 MB, free: 41.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001477/0.1675, allocations: 121.9 kB / 448.3 MB, free: 41.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/0.1676, allocations: 79.86 kB / 448.3 MB, free: 41.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.506e-05/0.1676, allocations: 96.31 kB / 448.4 MB, free: 41.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.549e-06/0.1676, allocations: 25.7 kB / 448.4 MB, free: 41.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.251e-06/0.1676, allocations: 83.14 kB / 448.5 MB, free: 41.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.1676, allocations: 3.938 kB / 448.5 MB, free: 41.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.818e-05/0.1676, allocations: 12.59 kB / 448.5 MB, free: 41.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.042e-05/0.1677, allocations: 317.7 kB / 448.9 MB, free: 41.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.1677, allocations: 30.55 kB / 448.9 MB, free: 41.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.826e-06/0.1677, allocations: 25.7 kB / 448.9 MB, free: 41.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.789e-05/0.1677, allocations: 68.17 kB / 449 MB, free: 41.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1677, allocations: 0 / 449 MB, free: 41.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.537e-05/0.1677, allocations: 85.8 kB / 449.1 MB, free: 40.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.1678, allocations: 34.42 kB / 449.1 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1678, allocations: 2.812 kB / 449.1 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.1678, allocations: 3.938 kB / 449.1 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.1678, allocations: 4.094 kB / 449.1 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.1678, allocations: 0 / 449.1 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.436e-05/0.1678, allocations: 0 / 449.1 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.1678, allocations: 2.844 kB / 449.1 MB, free: 40.93 MB / 410.7 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 4.061e-05/0.1679, allocations: 135.2 kB / 449.2 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-06/0.1679, allocations: 2.812 kB / 449.2 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.002e-05/0.1679, allocations: 6.469 kB / 449.3 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.1679, allocations: 3.938 kB / 449.3 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1679, allocations: 0 / 449.3 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1679, allocations: 0 / 449.3 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.291e-05/0.1679, allocations: 118.3 kB / 449.4 MB, free: 40.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.91e-07/0.1679, allocations: 4 kB / 449.4 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-07/0.1679, allocations: 7.875 kB / 449.4 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.1679, allocations: 2.812 kB / 449.4 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.1679, allocations: 0 / 449.4 MB, free: 40.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.1679, allocations: 7.125 kB / 449.4 MB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1679, allocations: 0 / 449.4 MB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.332e-05/0.168, allocations: 117.8 kB / 449.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-06/0.168, allocations: 6.219 kB / 449.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-06/0.168, allocations: 3.422 kB / 449.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.578e-06/0.168, allocations: 3.938 kB / 449.5 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.126e-05/0.168, allocations: 8.234 kB / 449.5 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-06/0.168, allocations: 0 / 449.5 MB, free: 40.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.777e-06/0.168, allocations: 78.02 kB / 449.6 MB, free: 40.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.168, allocations: 0 / 449.6 MB, free: 40.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001922/0.1682, allocations: 50.16 kB / 449.7 MB, free: 40.39 MB / 410.7 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.0009172/0.1691, allocations: 1.108 MB / 450.8 MB, free: 39.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.363e-05/0.1692, allocations: 114.9 kB / 450.9 MB, free: 39.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.1692, allocations: 0 / 450.9 MB, free: 39.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.167e-05/0.1692, allocations: 83.23 kB / 451 MB, free: 39.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.583e-05/0.1693, allocations: 10.16 kB / 451 MB, free: 39.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002408/0.1695, allocations: 154.9 kB / 451.1 MB, free: 39.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.345e-05/0.1695, allocations: 57.09 kB / 451.2 MB, free: 39.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.989e-06/0.1695, allocations: 7.125 kB / 451.2 MB, free: 39.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.804e-05/0.1696, allocations: 8.5 kB / 451.2 MB, free: 39.14 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1696, allocations: 0 / 451.2 MB, free: 39.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.1831, allocations: 3.752 MB / 454.9 MB, free: 37.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.15, allocations: 2.812 kB / 454.9 MB, free: 37.99 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.233059795573354]