Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001348, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2098/0.2098, allocations: 46.09 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 75.86 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3537, allocations: 62.44 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001612/0.3554, allocations: 494 kB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.3573, allocations: 1.142 MB / 0.5332 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.214e-05/0.3573, allocations: 5.469 kB / 0.5332 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.065e-05/0.3574, allocations: 0 / 0.5332 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-06/0.3574, allocations: 0 / 0.5332 GB, free: 12.38 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.002142/0.3595, allocations: 0.6806 MB / 0.5339 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.114e-05/0.3596, allocations: 3.984 kB / 0.5339 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.647e-05/0.3596, allocations: 1.812 kB / 0.5339 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.383e-05/0.3596, allocations: 2.031 kB / 0.5339 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.686e-05/0.3597, allocations: 4 kB / 0.5339 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-06/0.3597, allocations: 0 / 0.5339 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003422/0.3631, allocations: 2.448 MB / 0.5363 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.3631, allocations: 0 / 0.5363 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.935e-05/0.3632, allocations: 1.125 kB / 0.5363 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005735/0.3637, allocations: 360.9 kB / 0.5366 GB, free: 10.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3638, allocations: 1.219 kB / 0.5367 GB, free: 10.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3638, allocations: 0 / 0.5367 GB, free: 10.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.3638, allocations: 0 / 0.5367 GB, free: 10.71 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.0005593/0.3643, allocations: 382.3 kB / 0.537 GB, free: 10.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3644, allocations: 10.09 kB / 0.537 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.3644, allocations: 0 / 0.537 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.3645, allocations: 159.1 kB / 0.5372 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.3646, allocations: 4.969 kB / 0.5372 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.3646, allocations: 1.188 kB / 0.5372 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.707e-05/0.3647, allocations: 39.31 kB / 0.5372 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3647, allocations: 0 / 0.5372 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.3647, allocations: 1.438 kB / 0.5372 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.3647, allocations: 0 / 0.5372 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.064e-05/0.3647, allocations: 4.969 kB / 0.5372 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.3649, allocations: 151.1 kB / 0.5374 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.267e-05/0.3649, allocations: 21.42 kB / 0.5374 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.381e-05/0.365, allocations: 8.859 kB / 0.5374 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.365, allocations: 1.281 kB / 0.5374 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.365, allocations: 65.72 kB / 0.5375 GB, free: 9.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.635e-06/0.365, allocations: 3.984 kB / 0.5375 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001657/0.3652, allocations: 66.09 kB / 0.5375 GB, free: 9.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3653, allocations: 78.42 kB / 0.5376 GB, free: 9.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.53e-05/0.3653, allocations: 89.86 kB / 0.5377 GB, free: 9.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3653, allocations: 25.83 kB / 0.5377 GB, free: 9.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.312e-05/0.3654, allocations: 85.42 kB / 0.5378 GB, free: 9.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.3654, allocations: 3.984 kB / 0.5378 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.3654, allocations: 12.66 kB / 0.5378 GB, free: 9.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3655, allocations: 310.8 kB / 0.5381 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.729e-06/0.3655, allocations: 1.188 kB / 0.5381 GB, free: 9.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.778e-06/0.3656, allocations: 5.562 kB / 0.5381 GB, free: 9.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.923e-05/0.3656, allocations: 58.98 kB / 0.5382 GB, free: 8.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3656, allocations: 8 kB / 0.5382 GB, free: 8.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.128e-05/0.3657, allocations: 70.67 kB / 0.5382 GB, free: 8.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.3657, allocations: 31.33 kB / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3658, allocations: 0 / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.3658, allocations: 0 / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.284e-06/0.3658, allocations: 1.094 kB / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3658, allocations: 0 / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.3658, allocations: 1.688 kB / 0.5383 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3658, allocations: 0 / 0.5383 GB, free: 8.84 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 9.067e-05/0.3659, allocations: 150.1 kB / 0.5384 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.366, allocations: 3.984 kB / 0.5384 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.788e-06/0.366, allocations: 4.75 kB / 0.5384 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.366, allocations: 0 / 0.5384 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.366, allocations: 0 / 0.5384 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.366, allocations: 0 / 0.5384 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.129e-05/0.3661, allocations: 147.2 kB / 0.5386 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3661, allocations: 1.156 kB / 0.5386 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3661, allocations: 0 / 0.5386 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3661, allocations: 5.578 kB / 0.5386 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.3661, allocations: 4 kB / 0.5386 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3661, allocations: 0 / 0.5386 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3661, allocations: 1.656 kB / 0.5386 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.602e-05/0.3662, allocations: 96.55 kB / 0.5387 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.874e-05/0.3663, allocations: 88.94 kB / 0.5388 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3663, allocations: 1.25 kB / 0.5388 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.023e-05/0.3663, allocations: 1.438 kB / 0.5388 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.3663, allocations: 4.031 kB / 0.5388 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.3663, allocations: 5.531 kB / 0.5388 GB, free: 8.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.407e-05/0.3664, allocations: 75.28 kB / 0.5388 GB, free: 8.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3664, allocations: 0 / 0.5388 GB, free: 8.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004769/0.3669, allocations: 52.39 kB / 0.5389 GB, free: 8.156 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.001499/0.3684, allocations: 0.5329 MB / 0.5394 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.3685, allocations: 64.81 kB / 0.5395 GB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3685, allocations: 0 / 0.5395 GB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.238e-05/0.3685, allocations: 54.81 kB / 0.5395 GB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.3687, allocations: 6.188 kB / 0.5395 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00019/0.3689, allocations: 108.8 kB / 0.5396 GB, free: 7.586 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.3691, allocations: 0.6741 MB / 0.5403 GB, free: 6.887 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.545e-05/0.3692, allocations: 9.969 kB / 0.5403 GB, free: 6.879 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3692, allocations: 0 / 0.5403 GB, free: 6.879 MB / 398.1 MB Notification: Performance of Templates: time 0.005328/0.3745, allocations: 2.589 MB / 0.5428 GB, free: 5.812 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestColorMapToSvg.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches