Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 214.7 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2284/0.2284, allocations: 44.91 MB / 358.8 MB, free: 6.359 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003032/0.003032, allocations: 73.62 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3619, allocations: 65.48 MB / 0.557 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001845/0.3637, allocations: 488.4 kB / 0.5575 GB, free: 7.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.3659, allocations: 1.175 MB / 0.5586 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.3659, allocations: 7.938 kB / 0.5586 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.935e-05/0.3659, allocations: 0 / 0.5586 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.53e-06/0.3659, allocations: 0 / 0.5586 GB, free: 6.09 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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 4.0.0+maint.om/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.002106/0.368, allocations: 0.7533 MB / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.854e-05/0.3681, allocations: 3.984 kB / 0.5594 GB, free: 5.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.3681, allocations: 8 kB / 0.5594 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.437e-05/0.3681, allocations: 0 / 0.5594 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.815e-05/0.3681, allocations: 0 / 0.5594 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.712e-06/0.3682, allocations: 0 / 0.5594 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004011/0.3722, allocations: 2.507 MB / 0.5618 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.3722, allocations: 0 / 0.5618 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.441e-05/0.3722, allocations: 4 kB / 0.5618 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006208/0.3728, allocations: 363.3 kB / 0.5622 GB, free: 2.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3728, allocations: 0 / 0.5622 GB, free: 2.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3729, allocations: 0 / 0.5622 GB, free: 2.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.3729, allocations: 0 / 0.5622 GB, free: 2.461 MB / 398.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.0005786/0.3734, allocations: 307.6 kB / 0.5625 GB, free: 2.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.358e-05/0.3735, allocations: 8.031 kB / 0.5625 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.3736, allocations: 30.56 kB / 0.5625 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.3736, allocations: 0 / 0.5625 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.3737, allocations: 109.2 kB / 0.5626 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3737, allocations: 3.938 kB / 0.5626 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.3737, allocations: 0 / 0.5626 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.3739, allocations: 33.69 kB / 0.5627 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3739, allocations: 4 kB / 0.5627 GB, free: 1.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.3739, allocations: 3.938 kB / 0.5627 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3739, allocations: 0 / 0.5627 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.3e-05/0.3739, allocations: 0 / 0.5627 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002124/0.3741, allocations: 124.7 kB / 0.5628 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.306e-05/0.3742, allocations: 18.52 kB / 0.5628 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.762e-05/0.3742, allocations: 4.859 kB / 0.5628 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.3742, allocations: 0 / 0.5628 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.399e-05/0.3743, allocations: 68.34 kB / 0.5629 GB, free: 1.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.3743, allocations: 0 / 0.5629 GB, free: 1.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002619/0.3746, allocations: 67.39 kB / 0.5629 GB, free: 1.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/0.3746, allocations: 77.11 kB / 0.563 GB, free: 1.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.351e-05/0.3747, allocations: 97.75 kB / 0.5631 GB, free: 1.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.3747, allocations: 25.7 kB / 0.5631 GB, free: 1.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.371e-05/0.3748, allocations: 80.14 kB / 0.5632 GB, free: 1.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.3748, allocations: 4.062 kB / 0.5632 GB, free: 1.219 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.746e-05/0.3749, allocations: 25.7 kB / 0.5632 GB, free: 1.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.375, allocations: 310.8 kB / 0.5635 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-06/0.3751, allocations: 0 / 0.5635 GB, free: 0.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.589e-06/0.3751, allocations: 0 / 0.5635 GB, free: 0.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.243e-05/0.3751, allocations: 60.27 kB / 0.5636 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.3751, allocations: 3.938 kB / 0.5636 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.044e-05/0.3752, allocations: 71.39 kB / 0.5637 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.3752, allocations: 33.8 kB / 0.5637 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3752, allocations: 0 / 0.5637 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3753, allocations: 7.984 kB / 0.5637 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3753, allocations: 0 / 0.5637 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3753, allocations: 3.938 kB / 0.5637 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.634e-05/0.3753, allocations: 0 / 0.5637 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.3753, allocations: 0 / 0.5637 GB, free: 0.6641 MB / 398.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.0001039/0.3754, allocations: 139.5 kB / 0.5638 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.814e-06/0.3754, allocations: 0 / 0.5638 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.258e-05/0.3754, allocations: 10.98 kB / 0.5638 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3754, allocations: 0 / 0.5638 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3754, allocations: 0 / 0.5638 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.3754, allocations: 0 / 0.5638 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.3755, allocations: 120.7 kB / 0.564 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3755, allocations: 3.938 kB / 0.564 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.3755, allocations: 0 / 0.564 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3755, allocations: 0 / 0.564 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.3755, allocations: 0 / 0.564 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3755, allocations: 7.984 kB / 0.564 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3755, allocations: 0 / 0.564 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.785e-05/0.3756, allocations: 94.78 kB / 0.5641 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.151e-06/0.3756, allocations: 4 kB / 0.5641 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.3757, allocations: 3.984 kB / 0.5641 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3757, allocations: 0 / 0.5641 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.3757, allocations: 3.938 kB / 0.5641 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3757, allocations: 0 / 0.5641 GB, free: 204 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.071e-05/0.3757, allocations: 79.28 kB / 0.5641 GB, free: 124 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3757, allocations: 4.031 kB / 0.5641 GB, free: 120 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.3761, allocations: 51.73 kB / 0.5642 GB, free: 68 kB / 398.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.001984/0.3781, allocations: 1.065 MB / 0.5652 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.3782, allocations: 63.39 kB / 0.5653 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3782, allocations: 3.938 kB / 0.5653 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.078e-05/0.3783, allocations: 55.41 kB / 0.5654 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001504/0.3784, allocations: 3.938 kB / 0.5654 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004836/0.3789, allocations: 142.5 kB / 0.5655 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.3793, allocations: 0.669 MB / 0.5661 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.447e-06/0.3793, allocations: 3.984 kB / 0.5662 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.815e-05/0.3793, allocations: 11.44 kB / 0.5662 GB, free: 14 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3793, allocations: 0 / 0.5662 GB, free: 14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.4055, allocations: 3.176 MB / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.32, allocations: 7.797 kB / 0.5693 GB, free: 10.95 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.253026744001545]