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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 113.6 kB / 17.83 MB, free: 5.211 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.00123/0.00123, allocations: 187.1 kB / 18.77 MB, free: 4.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.6 MB / 245.1 MB, free: 14.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2274/0.2274, allocations: 44.92 MB / 342.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.91 kB / 483.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3461, allocations: 64.25 MB / 0.535 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001545/0.3476, allocations: 0.5029 MB / 0.5355 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.3498, allocations: 1.145 MB / 0.5366 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.179e-05/0.3498, allocations: 4 kB / 0.5366 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.3498, allocations: 0 / 0.5366 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.3498, allocations: 5.375 kB / 0.5366 GB, free: 11.54 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.001986/0.3518, allocations: 0.6743 MB / 0.5373 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.866e-05/0.3519, allocations: 5.375 kB / 0.5373 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.814e-05/0.3519, allocations: 1.375 kB / 0.5373 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.013e-05/0.3519, allocations: 9.297 kB / 0.5373 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.578e-05/0.3519, allocations: 0 / 0.5373 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-06/0.3519, allocations: 0 / 0.5373 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.3554, allocations: 2.457 MB / 0.5397 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.3554, allocations: 0 / 0.5397 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.336e-05/0.3554, allocations: 1.719 kB / 0.5397 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005071/0.3559, allocations: 356.1 kB / 0.54 GB, free: 9.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3559, allocations: 0.875 kB / 0.54 GB, free: 9.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3559, allocations: 3.938 kB / 0.54 GB, free: 9.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.356, allocations: 0 / 0.54 GB, free: 9.871 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.0005223/0.3565, allocations: 382.4 kB / 0.5404 GB, free: 9.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3565, allocations: 8.875 kB / 0.5404 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.3566, allocations: 1.062 kB / 0.5404 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.3567, allocations: 159.1 kB / 0.5406 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.3567, allocations: 5.094 kB / 0.5406 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.3567, allocations: 5.156 kB / 0.5406 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.582e-05/0.3568, allocations: 34.84 kB / 0.5406 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3568, allocations: 5.094 kB / 0.5406 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.3568, allocations: 4 kB / 0.5406 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.3568, allocations: 0 / 0.5406 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.702e-05/0.3569, allocations: 2.219 kB / 0.5406 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.357, allocations: 142.9 kB / 0.5407 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.569e-05/0.3571, allocations: 19.58 kB / 0.5408 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.422e-05/0.3571, allocations: 9.984 kB / 0.5408 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.899e-06/0.3571, allocations: 1.219 kB / 0.5408 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/0.3571, allocations: 65.28 kB / 0.5408 GB, free: 8.902 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3571, allocations: 3.938 kB / 0.5408 GB, free: 8.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002046/0.3574, allocations: 62.28 kB / 0.5409 GB, free: 8.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.3574, allocations: 82.17 kB / 0.541 GB, free: 8.734 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.933e-05/0.3575, allocations: 89.86 kB / 0.5411 GB, free: 8.637 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3575, allocations: 30.95 kB / 0.5411 GB, free: 8.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.185e-05/0.3575, allocations: 80.14 kB / 0.5412 GB, free: 8.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.3575, allocations: 1.156 kB / 0.5412 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-05/0.3576, allocations: 19.89 kB / 0.5412 GB, free: 8.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3577, allocations: 310.8 kB / 0.5415 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.3577, allocations: 1.031 kB / 0.5415 GB, free: 8.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-06/0.3577, allocations: 1.094 kB / 0.5415 GB, free: 8.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.298e-05/0.3578, allocations: 67.77 kB / 0.5415 GB, free: 8.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3578, allocations: 0 / 0.5415 GB, free: 8.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.908e-05/0.3579, allocations: 70.77 kB / 0.5416 GB, free: 8.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.3579, allocations: 30.7 kB / 0.5416 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3579, allocations: 0 / 0.5416 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3579, allocations: 1.219 kB / 0.5416 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3579, allocations: 0 / 0.5416 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3579, allocations: 1.344 kB / 0.5416 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.3579, allocations: 0 / 0.5416 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.3579, allocations: 1.281 kB / 0.5417 GB, free: 8 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.0001019/0.358, allocations: 141.9 kB / 0.5418 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.198e-05/0.3581, allocations: 7.938 kB / 0.5418 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.107e-05/0.3581, allocations: 12.16 kB / 0.5418 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3581, allocations: 0 / 0.5418 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3581, allocations: 1.125 kB / 0.5418 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.3581, allocations: 0 / 0.5418 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.3582, allocations: 146.7 kB / 0.5419 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3582, allocations: 1.094 kB / 0.5419 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3582, allocations: 0 / 0.5419 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.3582, allocations: 3.984 kB / 0.542 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.3582, allocations: 9.125 kB / 0.542 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3582, allocations: 5.219 kB / 0.542 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3582, allocations: 0 / 0.542 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.3583, allocations: 93.47 kB / 0.5421 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-05/0.3584, allocations: 81.09 kB / 0.5421 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.3584, allocations: 1.031 kB / 0.5421 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.687e-06/0.3584, allocations: 1.125 kB / 0.5421 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.186e-05/0.3584, allocations: 9.031 kB / 0.5421 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.3584, allocations: 0 / 0.5421 GB, free: 7.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.943e-05/0.3585, allocations: 76.28 kB / 0.5422 GB, free: 7.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3585, allocations: 0 / 0.5422 GB, free: 7.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003602/0.3588, allocations: 59.05 kB / 0.5423 GB, free: 7.312 MB / 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.001729/0.3606, allocations: 0.5357 MB / 0.5428 GB, free: 7.027 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.3607, allocations: 64.88 kB / 0.5429 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3607, allocations: 0 / 0.5429 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.988e-05/0.3607, allocations: 54 kB / 0.5429 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.3609, allocations: 7.156 kB / 0.5429 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002347/0.3611, allocations: 76.47 kB / 0.543 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.3614, allocations: 0.6743 MB / 0.5436 GB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.3614, allocations: 0 / 0.5436 GB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.211e-05/0.3614, allocations: 8.844 kB / 0.5437 GB, free: 6.09 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3614, allocations: 0 / 0.5437 GB, free: 6.09 MB / 398.1 MB Notification: Performance of Templates: time 0.005942/0.3674, allocations: 2.152 MB / 0.5458 GB, free: 5.09 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches