Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestColorMapToSvg,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_TestColorMapToSvg",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001213, allocations: 103.2 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 192.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2119/0.2119, allocations: 43.52 MB / 313.9 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 68.64 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.108, allocations: 57.79 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002657/0.1107, allocations: 0.4975 MB / 441.1 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00205/0.1128, allocations: 1.14 MB / 442.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.028e-05/0.1128, allocations: 8 kB / 442.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.52e-05/0.1129, allocations: 0 / 442.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.009e-06/0.1129, allocations: 0 / 442.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003257/0.1162, allocations: 0.6834 MB / 442.9 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.1163, allocations: 3.984 kB / 442.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.004e-05/0.1164, allocations: 0 / 442.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.307e-05/0.1164, allocations: 4 kB / 442.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.09e-05/0.1164, allocations: 0 / 442.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.1165, allocations: 3.938 kB / 442.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.119, allocations: 2.453 MB / 445.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.119, allocations: 4 kB / 445.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.864e-05/0.1191, allocations: 0 / 445.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004683/0.1195, allocations: 355.5 kB / 445.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1196, allocations: 0 / 445.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1196, allocations: 0 / 445.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1196, allocations: 0 / 445.8 MB, free: 1.664 MB / 318.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.0004499/0.12, allocations: 377 kB / 446.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.1201, allocations: 11.89 kB / 446.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.1201, allocations: 30.56 kB / 446.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.1202, allocations: 0 / 446.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.194e-05/0.1202, allocations: 163.1 kB / 446.3 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1203, allocations: 11.94 kB / 446.3 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-06/0.1203, allocations: 7.938 kB / 446.3 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.279e-05/0.1204, allocations: 25.7 kB / 446.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1204, allocations: 4 kB / 446.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1204, allocations: 0 / 446.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1204, allocations: 0 / 446.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.765e-05/0.1204, allocations: 0 / 446.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.1206, allocations: 153.5 kB / 446.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.567e-05/0.1206, allocations: 22.61 kB / 446.5 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.005e-05/0.1206, allocations: 16.86 kB / 446.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.1207, allocations: 0 / 446.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.1207, allocations: 60.33 kB / 446.6 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.1207, allocations: 0 / 446.6 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000176/0.1209, allocations: 63.33 kB / 446.7 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.1209, allocations: 81.11 kB / 446.8 MB, free: 452 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.332e-05/0.121, allocations: 89.86 kB / 446.8 MB, free: 352 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.121, allocations: 29.83 kB / 446.9 MB, free: 316 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.461e-05/0.121, allocations: 84.14 kB / 447 MB, free: 228 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.121, allocations: 3.938 kB / 447 MB, free: 224 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.412e-05/0.121, allocations: 13.72 kB / 447 MB, free: 204 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1212, allocations: 310.8 kB / 447.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.066e-05/0.1212, allocations: 0 / 447.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.012e-06/0.1212, allocations: 0 / 447.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.827e-05/0.1212, allocations: 68.31 kB / 447.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1213, allocations: 7.875 kB / 447.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.318e-05/0.1213, allocations: 67.34 kB / 447.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/0.1214, allocations: 29.7 kB / 447.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.1214, allocations: 0 / 447.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1214, allocations: 0 / 447.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.096e-06/0.1214, allocations: 7.984 kB / 447.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.1214, allocations: 0 / 447.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.11e-05/0.1215, allocations: 0 / 447.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.1215, allocations: 0 / 447.5 MB, free: 15.68 MB / 334.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.0001028/0.1216, allocations: 147.5 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-06/0.1216, allocations: 0 / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.007e-06/0.1216, allocations: 3.125 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.1216, allocations: 0 / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1216, allocations: 3.938 kB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1217, allocations: 0 / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.1218, allocations: 157.6 kB / 447.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1218, allocations: 0 / 447.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.91e-07/0.1218, allocations: 0 / 447.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1218, allocations: 0 / 447.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.1218, allocations: 4 kB / 447.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1218, allocations: 0 / 447.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1218, allocations: 0 / 447.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.1219, allocations: 98.7 kB / 447.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.122, allocations: 77.11 kB / 447.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.122, allocations: 4 kB / 447.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.041e-05/0.122, allocations: 0 / 447.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.122, allocations: 4.031 kB / 447.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.122, allocations: 0 / 447.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.289e-05/0.1221, allocations: 75.31 kB / 448 MB, free: 15.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1221, allocations: 0 / 448 MB, free: 15.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004196/0.1225, allocations: 51.98 kB / 448.1 MB, free: 14.96 MB / 334.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.002072/0.1246, allocations: 1.069 MB / 449.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.727e-05/0.1247, allocations: 59.34 kB / 449.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.1247, allocations: 0 / 449.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.335e-05/0.1248, allocations: 67.31 kB / 449.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001437/0.1249, allocations: 11.88 kB / 449.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003919/0.1253, allocations: 126.6 kB / 449.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.1256, allocations: 0.6729 MB / 450.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.37e-06/0.1256, allocations: 4.125 kB / 450.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.1256, allocations: 7.438 kB / 450.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1256, allocations: 0 / 450.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.1486, allocations: 3.007 MB / 453.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.832/7.981, allocations: 8.062 kB / 453.1 MB, free: 9.852 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_TestColorMapToSvg_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_TestColorMapToSvg.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches