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.001406/0.001406, allocations: 112.1 kB / 18.49 MB, free: 4.539 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.001638/0.001638, allocations: 219 kB / 21.46 MB, free: 1.586 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.436/1.436, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.2199/0.2199, allocations: 44.91 MB / 355.8 MB, free: 12.3 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg",fmuType="cs",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.001965/0.001965, allocations: 68.19 kB / 0.4885 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1257, allocations: 65.41 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001686/0.1274, allocations: 0.4893 MB / 0.5529 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1294, allocations: 1.161 MB / 0.554 GB, free: 8.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.985e-05/0.1295, allocations: 4 kB / 0.554 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.593e-05/0.1295, allocations: 0 / 0.554 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.78e-06/0.1295, allocations: 0 / 0.554 GB, free: 8.473 MB / 414.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.002003/0.1315, allocations: 0.6747 MB / 0.5547 GB, free: 7.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.519e-05/0.1315, allocations: 11.92 kB / 0.5547 GB, free: 7.793 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.43e-05/0.1316, allocations: 4 kB / 0.5547 GB, free: 7.789 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.503e-05/0.1316, allocations: 4 kB / 0.5547 GB, free: 7.785 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.31e-05/0.1316, allocations: 0 / 0.5547 GB, free: 7.785 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.799e-06/0.1316, allocations: 0 / 0.5547 GB, free: 7.785 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002992/0.1346, allocations: 2.46 MB / 0.5571 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.1346, allocations: 0 / 0.5571 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.962e-05/0.1346, allocations: 0 / 0.5571 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004375/0.1351, allocations: 359.3 kB / 0.5575 GB, free: 4.969 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1351, allocations: 0 / 0.5575 GB, free: 4.969 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1351, allocations: 0 / 0.5575 GB, free: 4.969 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1351, allocations: 4 kB / 0.5575 GB, free: 4.965 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.0004574/0.1355, allocations: 372.7 kB / 0.5578 GB, free: 4.547 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1356, allocations: 8.031 kB / 0.5578 GB, free: 4.539 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.029e-05/0.1356, allocations: 4 kB / 0.5578 GB, free: 4.535 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.1356, allocations: 34.56 kB / 0.5579 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.198e-05/0.1356, allocations: 0 / 0.5579 GB, free: 4.492 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.1357, allocations: 167 kB / 0.558 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1358, allocations: 4 kB / 0.558 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.1358, allocations: 4 kB / 0.558 GB, free: 4.281 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.389e-05/0.1359, allocations: 33.64 kB / 0.5581 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1359, allocations: 0 / 0.5581 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.1359, allocations: 3.984 kB / 0.5581 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1359, allocations: 4 kB / 0.5581 GB, free: 4.234 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.601e-05/0.1359, allocations: 0 / 0.5581 GB, free: 4.234 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.136, allocations: 149.6 kB / 0.5582 GB, free: 4.039 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.391e-05/0.1361, allocations: 22.5 kB / 0.5582 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.1361, allocations: 12.8 kB / 0.5582 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.1361, allocations: 4.094 kB / 0.5582 GB, free: 3.988 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/0.1362, allocations: 64.27 kB / 0.5583 GB, free: 3.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1362, allocations: 0 / 0.5583 GB, free: 3.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.1363, allocations: 59.41 kB / 0.5584 GB, free: 3.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.1364, allocations: 81.09 kB / 0.5584 GB, free: 3.742 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.19e-05/0.1364, allocations: 93.81 kB / 0.5585 GB, free: 3.641 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.1365, allocations: 25.7 kB / 0.5586 GB, free: 3.609 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.53e-05/0.1365, allocations: 80.14 kB / 0.5586 GB, free: 3.527 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.1365, allocations: 4 kB / 0.5586 GB, free: 3.523 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.1365, allocations: 13.84 kB / 0.5586 GB, free: 3.504 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1367, allocations: 314.8 kB / 0.5589 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/0.1367, allocations: 0 / 0.5589 GB, free: 3.188 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.233e-06/0.1367, allocations: 7.938 kB / 0.559 GB, free: 3.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.222e-05/0.1367, allocations: 60.2 kB / 0.559 GB, free: 3.105 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1368, allocations: 7.922 kB / 0.559 GB, free: 3.098 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.291e-05/0.1368, allocations: 63.41 kB / 0.5591 GB, free: 3.023 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.1369, allocations: 33.7 kB / 0.5591 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1369, allocations: 4.094 kB / 0.5591 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1369, allocations: 0 / 0.5591 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1369, allocations: 0 / 0.5591 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1369, allocations: 0 / 0.5591 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.1369, allocations: 3.938 kB / 0.5591 GB, free: 2.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.1369, allocations: 0 / 0.5591 GB, free: 2.977 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 9.76e-05/0.137, allocations: 145.7 kB / 0.5593 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-06/0.137, allocations: 3.938 kB / 0.5593 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.258e-06/0.137, allocations: 3.125 kB / 0.5593 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.137, allocations: 4 kB / 0.5593 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.137, allocations: 0 / 0.5593 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.137, allocations: 4 kB / 0.5593 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.1371, allocations: 153.6 kB / 0.5594 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1371, allocations: 0 / 0.5594 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1371, allocations: 0 / 0.5594 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.1371, allocations: 0 / 0.5594 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.1371, allocations: 0 / 0.5594 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1371, allocations: 7.938 kB / 0.5594 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1371, allocations: 0 / 0.5594 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.1372, allocations: 98.75 kB / 0.5595 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.1373, allocations: 77.11 kB / 0.5596 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.1373, allocations: 8 kB / 0.5596 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.1373, allocations: 0 / 0.5596 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-06/0.1373, allocations: 0 / 0.5596 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.1373, allocations: 0 / 0.5596 GB, free: 2.375 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.1374, allocations: 75.28 kB / 0.5597 GB, free: 2.301 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1374, allocations: 3.938 kB / 0.5597 GB, free: 2.297 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.1377, allocations: 55.83 kB / 0.5597 GB, free: 2.242 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.001861/0.1396, allocations: 1.07 MB / 0.5608 GB, free: 1.207 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.939e-05/0.1397, allocations: 59.41 kB / 0.5608 GB, free: 1.137 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1397, allocations: 0 / 0.5608 GB, free: 1.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.649e-05/0.1397, allocations: 55.34 kB / 0.5609 GB, free: 1.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1398, allocations: 4 kB / 0.5609 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003769/0.1402, allocations: 138.6 kB / 0.561 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.1405, allocations: 0.6768 MB / 0.5617 GB, free: 192 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.1405, allocations: 0 / 0.5617 GB, free: 192 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.518e-05/0.1405, allocations: 7.438 kB / 0.5617 GB, free: 184 kB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1405, allocations: 0 / 0.5617 GB, free: 184 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02003/0.1605, allocations: 3.092 MB / 0.5647 GB, free: 13.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.317/8.477, allocations: 14.28 kB / 0.5647 GB, free: 13.16 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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: 11.432806260010693]