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.00168/0.00168, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002151/0.002151, allocations: 211.9 kB / 24.51 MB, free: 3.945 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.401/1.401, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2216/0.2216, allocations: 46.95 MB / 361.6 MB, free: 4.113 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 71.84 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3418, allocations: 66.02 MB / 0.5613 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001782/0.3435, allocations: 0.4892 MB / 0.5618 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.3456, allocations: 1.1 MB / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.904e-05/0.3456, allocations: 0 / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.638e-05/0.3456, allocations: 0 / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.913e-06/0.3457, allocations: 3.938 kB / 0.5629 GB, free: 2.609 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.002207/0.3479, allocations: 0.7537 MB / 0.5636 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.684e-05/0.3479, allocations: 8 kB / 0.5636 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.919e-05/0.3479, allocations: 4 kB / 0.5636 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.615e-05/0.348, allocations: 4 kB / 0.5636 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.949e-05/0.348, allocations: 3.984 kB / 0.5636 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-06/0.348, allocations: 0 / 0.5636 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00327/0.3513, allocations: 2.464 MB / 0.5661 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.938e-06/0.3513, allocations: 0 / 0.5661 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.542e-05/0.3513, allocations: 3.984 kB / 0.5661 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004851/0.3518, allocations: 351.3 kB / 0.5664 GB, free: 15.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3518, allocations: 0 / 0.5664 GB, free: 15.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3518, allocations: 0 / 0.5664 GB, free: 15.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.3518, allocations: 0 / 0.5664 GB, free: 15.03 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.0004856/0.3523, allocations: 303.6 kB / 0.5667 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3523, allocations: 12.03 kB / 0.5667 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.804e-05/0.3523, allocations: 4 kB / 0.5667 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.438e-05/0.3524, allocations: 30.56 kB / 0.5667 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.375e-05/0.3524, allocations: 0 / 0.5667 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.3525, allocations: 105.2 kB / 0.5668 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.3525, allocations: 7.984 kB / 0.5668 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.3525, allocations: 7.938 kB / 0.5668 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.3526, allocations: 55.39 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3526, allocations: 3.938 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-06/0.3526, allocations: 0 / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3526, allocations: 4 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.42e-05/0.3527, allocations: 29.7 kB / 0.5669 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.3528, allocations: 120.7 kB / 0.567 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.478e-05/0.3529, allocations: 48.22 kB / 0.5671 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.081e-05/0.3529, allocations: 34.55 kB / 0.5671 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.3529, allocations: 4.062 kB / 0.5671 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.052e-05/0.353, allocations: 60.27 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.353, allocations: 0 / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002024/0.3532, allocations: 118.7 kB / 0.5673 GB, free: 13.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.3532, allocations: 77.11 kB / 0.5674 GB, free: 13.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.3533, allocations: 97.94 kB / 0.5675 GB, free: 13.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.3533, allocations: 29.7 kB / 0.5675 GB, free: 13.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.3534, allocations: 80.14 kB / 0.5676 GB, free: 13.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.3534, allocations: 4 kB / 0.5676 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.762e-05/0.3534, allocations: 9.719 kB / 0.5676 GB, free: 13.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3536, allocations: 314.8 kB / 0.5679 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.212e-05/0.3536, allocations: 25.7 kB / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.986e-05/0.3536, allocations: 25.7 kB / 0.5679 GB, free: 13.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.335e-05/0.3537, allocations: 76.12 kB / 0.568 GB, free: 13.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3537, allocations: 0 / 0.568 GB, free: 13.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.137e-05/0.3538, allocations: 89.17 kB / 0.5681 GB, free: 13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/0.3538, allocations: 29.7 kB / 0.5681 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3538, allocations: 4 kB / 0.5681 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.3538, allocations: 3.984 kB / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3538, allocations: 0 / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.3538, allocations: 0 / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.3539, allocations: 0 / 0.5681 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.3539, allocations: 0 / 0.5681 GB, free: 12.95 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.0001249/0.354, allocations: 139.5 kB / 0.5683 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.354, allocations: 4 kB / 0.5683 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.395e-05/0.354, allocations: 7.031 kB / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.354, allocations: 0 / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.354, allocations: 4 kB / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.354, allocations: 0 / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.3541, allocations: 124.7 kB / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3541, allocations: 0 / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.3541, allocations: 0 / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3541, allocations: 0 / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.3542, allocations: 7.938 kB / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.3542, allocations: 7.875 kB / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3542, allocations: 0 / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.3543, allocations: 124.5 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.3543, allocations: 0 / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.3543, allocations: 4 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.3543, allocations: 4 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/0.3543, allocations: 0 / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.3543, allocations: 0 / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.61e-05/0.3544, allocations: 75.28 kB / 0.5686 GB, free: 12.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3544, allocations: 0 / 0.5686 GB, free: 12.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000357/0.3547, allocations: 55.73 kB / 0.5687 GB, free: 12.32 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.3567, allocations: 1.112 MB / 0.5697 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.3568, allocations: 118.8 kB / 0.5699 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3568, allocations: 0 / 0.5699 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.33e-05/0.3569, allocations: 85.17 kB / 0.5699 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.357, allocations: 3.938 kB / 0.5699 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004461/0.3574, allocations: 164.1 kB / 0.5701 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.933e-05/0.3575, allocations: 63.28 kB / 0.5702 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.454e-06/0.3575, allocations: 0 / 0.5702 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.261e-05/0.3575, allocations: 11.44 kB / 0.5702 GB, free: 10.7 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3575, allocations: 0 / 0.5702 GB, free: 10.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.381, allocations: 3.255 MB / 0.5733 GB, free: 7.582 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.2, allocations: 13.14 kB / 0.5734 GB, free: 7.574 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.993508383980952]