Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001476/0.001476, 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 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.001805/0.001805, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2312/0.2312, allocations: 46.95 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 67.89 kB / 0.4961 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3853, allocations: 66.04 MB / 0.5606 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002175/0.3875, allocations: 497.1 kB / 0.5611 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002778/0.3902, allocations: 1.104 MB / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.602e-05/0.3903, allocations: 0 / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.862e-05/0.3903, allocations: 3.938 kB / 0.5621 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.231e-06/0.3903, allocations: 0 / 0.5621 GB, free: 2.531 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.1.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.002903/0.3932, allocations: 0.7335 MB / 0.5629 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.695e-05/0.3933, allocations: 4 kB / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.017e-05/0.3933, allocations: 7.984 kB / 0.5629 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.409e-05/0.3933, allocations: 4 kB / 0.5629 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.345e-05/0.3934, allocations: 0 / 0.5629 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.331e-06/0.3934, allocations: 0 / 0.5629 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004682/0.398, allocations: 2.456 MB / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.2e-05/0.3981, allocations: 3.938 kB / 0.5653 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.3981, allocations: 0 / 0.5653 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006262/0.3987, allocations: 355.4 kB / 0.5656 GB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3987, allocations: 0 / 0.5656 GB, free: 14.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3987, allocations: 0 / 0.5656 GB, free: 14.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.3987, allocations: 4 kB / 0.5656 GB, free: 14.97 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.0005317/0.3993, allocations: 299.6 kB / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3993, allocations: 8.031 kB / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.972e-05/0.3994, allocations: 38.5 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.961e-05/0.3994, allocations: 0 / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.3995, allocations: 101.2 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3995, allocations: 7.922 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-06/0.3995, allocations: 0 / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.3996, allocations: 59.41 kB / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.3996, allocations: 0 / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.3997, allocations: 4 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.3997, allocations: 3.984 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.145e-05/0.3997, allocations: 29.7 kB / 0.5661 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.3999, allocations: 120.7 kB / 0.5663 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.096e-05/0.3999, allocations: 48.25 kB / 0.5663 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.64e-05/0.4, allocations: 30.56 kB / 0.5663 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.4, allocations: 0 / 0.5663 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.559e-05/0.4001, allocations: 72.25 kB / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.4001, allocations: 4 kB / 0.5664 GB, free: 13.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002273/0.4003, allocations: 110.8 kB / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.4004, allocations: 81.05 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.393e-05/0.4004, allocations: 97.8 kB / 0.5667 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.4004, allocations: 25.7 kB / 0.5667 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.4005, allocations: 84.14 kB / 0.5668 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.4005, allocations: 4 kB / 0.5668 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.4006, allocations: 9.719 kB / 0.5668 GB, free: 13.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.4008, allocations: 314.8 kB / 0.5671 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.116e-05/0.4008, allocations: 25.83 kB / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.314e-05/0.4008, allocations: 29.7 kB / 0.5671 GB, free: 13.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.401, allocations: 64.27 kB / 0.5672 GB, free: 13.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.401, allocations: 3.938 kB / 0.5672 GB, free: 13.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001142/0.4011, allocations: 89.09 kB / 0.5673 GB, free: 12.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.308e-05/0.4011, allocations: 29.7 kB / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4011, allocations: 3.938 kB / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.4011, allocations: 4 kB / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-06/0.4011, allocations: 0 / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.4011, allocations: 96 / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.027e-05/0.4012, allocations: 7.938 kB / 0.5673 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.4012, allocations: 3.984 kB / 0.5673 GB, free: 12.89 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.0001229/0.4013, allocations: 139.5 kB / 0.5675 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.273e-05/0.4013, allocations: 4 kB / 0.5675 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.362e-05/0.4013, allocations: 3 kB / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4013, allocations: 0 / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4013, allocations: 0 / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.4013, allocations: 0 / 0.5675 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/0.4015, allocations: 124.7 kB / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4015, allocations: 0 / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.4015, allocations: 4 kB / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.4015, allocations: 0 / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.4015, allocations: 4 kB / 0.5676 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4015, allocations: 0 / 0.5676 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4015, allocations: 0 / 0.5676 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.4017, allocations: 128.4 kB / 0.5677 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.98e-06/0.4017, allocations: 3.938 kB / 0.5677 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.4017, allocations: 0 / 0.5677 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.656e-05/0.4017, allocations: 4 kB / 0.5677 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.4017, allocations: 4 kB / 0.5677 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.4017, allocations: 4.031 kB / 0.5677 GB, free: 12.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.358e-05/0.4018, allocations: 75.28 kB / 0.5678 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4018, allocations: 0 / 0.5678 GB, free: 12.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004834/0.4022, allocations: 55.73 kB / 0.5679 GB, free: 12.26 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.00266/0.4049, allocations: 1.118 MB / 0.569 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000162/0.4051, allocations: 122.7 kB / 0.5691 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4051, allocations: 0 / 0.5691 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.939e-05/0.4051, allocations: 85.09 kB / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.4053, allocations: 3.938 kB / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005342/0.4059, allocations: 164.1 kB / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.984e-05/0.4059, allocations: 55.36 kB / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.061e-06/0.4059, allocations: 0 / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.791e-05/0.4059, allocations: 11.56 kB / 0.5694 GB, free: 10.64 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4059, allocations: 0 / 0.5694 GB, free: 10.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.444, allocations: 3.584 MB / 0.5729 GB, free: 7.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.73, allocations: 9.453 kB / 0.5729 GB, free: 7.176 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.649374921340495]