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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001981/0.001981, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0024/0.0024, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2231/0.2231, allocations: 46.93 MB / 361.5 MB, free: 4.199 MB / 286.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") translateModel(ModelicaTest.Math.TestColorMapToSvg,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 83.88 kB / 0.4974 GB, free: 7.289 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2639, allocations: 66.08 MB / 0.5619 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001447/0.2653, allocations: 0.4892 MB / 0.5624 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2673, allocations: 1.177 MB / 0.5636 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.859e-05/0.2673, allocations: 0 / 0.5636 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.2673, allocations: 4 kB / 0.5636 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.699e-06/0.2673, allocations: 0 / 0.5636 GB, free: 2.586 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.001856/0.2692, allocations: 0.7445 MB / 0.5643 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.922e-05/0.2692, allocations: 4 kB / 0.5643 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.653e-05/0.2692, allocations: 0 / 0.5643 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.554e-05/0.2693, allocations: 7.969 kB / 0.5643 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.215e-05/0.2693, allocations: 0 / 0.5643 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-06/0.2693, allocations: 0 / 0.5643 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003184/0.2725, allocations: 2.508 MB / 0.5668 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-06/0.2725, allocations: 0 / 0.5668 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.603e-05/0.2725, allocations: 4 kB / 0.5668 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004221/0.2729, allocations: 359.4 kB / 0.5671 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2729, allocations: 0 / 0.5671 GB, free: 14.97 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2729, allocations: 4 kB / 0.5671 GB, free: 14.97 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.2729, allocations: 0 / 0.5671 GB, free: 14.97 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.0003714/0.2733, allocations: 307.5 kB / 0.5674 GB, free: 14.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2733, allocations: 8.031 kB / 0.5674 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.418e-05/0.2733, allocations: 0 / 0.5674 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.2735, allocations: 105.2 kB / 0.5675 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.2735, allocations: 0 / 0.5675 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.2735, allocations: 0 / 0.5675 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.479e-05/0.2736, allocations: 45.56 kB / 0.5676 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.2736, allocations: 0 / 0.5676 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-06/0.2736, allocations: 3.938 kB / 0.5676 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.2736, allocations: 0 / 0.5676 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.391e-05/0.2736, allocations: 0 / 0.5676 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.2737, allocations: 124.8 kB / 0.5677 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.391e-05/0.2738, allocations: 14.58 kB / 0.5677 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.28e-05/0.2738, allocations: 4.859 kB / 0.5677 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.2738, allocations: 7.938 kB / 0.5677 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/0.2739, allocations: 72.22 kB / 0.5678 GB, free: 14.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.2739, allocations: 0 / 0.5678 GB, free: 14.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001579/0.274, allocations: 63.41 kB / 0.5678 GB, free: 14.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.2741, allocations: 77.11 kB / 0.5679 GB, free: 13.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.13e-05/0.2741, allocations: 93.81 kB / 0.568 GB, free: 13.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.2741, allocations: 25.7 kB / 0.568 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.218e-05/0.2742, allocations: 80.14 kB / 0.5681 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.325e-05/0.2742, allocations: 4.125 kB / 0.5681 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.089e-05/0.2742, allocations: 17.7 kB / 0.5681 GB, free: 13.74 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2743, allocations: 310.8 kB / 0.5684 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.2743, allocations: 4 kB / 0.5684 GB, free: 13.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.429e-06/0.2743, allocations: 0 / 0.5684 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.998e-05/0.2744, allocations: 64.2 kB / 0.5685 GB, free: 13.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2744, allocations: 0 / 0.5685 GB, free: 13.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.347e-05/0.2745, allocations: 71.39 kB / 0.5685 GB, free: 13.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.2745, allocations: 29.7 kB / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2745, allocations: 4 kB / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2745, allocations: 0 / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.2745, allocations: 0 / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.2745, allocations: 0 / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.237e-05/0.2745, allocations: 0 / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.2745, allocations: 0 / 0.5686 GB, free: 13.23 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 8.771e-05/0.2746, allocations: 139.5 kB / 0.5687 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.2746, allocations: 11.95 kB / 0.5687 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-06/0.2747, allocations: 3 kB / 0.5687 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.2747, allocations: 0 / 0.5687 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.2747, allocations: 3.984 kB / 0.5687 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2747, allocations: 3.938 kB / 0.5687 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.037e-05/0.2747, allocations: 116.8 kB / 0.5688 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.2748, allocations: 3.938 kB / 0.5689 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.265e-06/0.2748, allocations: 3.938 kB / 0.5689 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2748, allocations: 0 / 0.5689 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.2748, allocations: 7.969 kB / 0.5689 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.2748, allocations: 4 kB / 0.5689 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2748, allocations: 4 kB / 0.5689 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.166e-05/0.2749, allocations: 82.84 kB / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-06/0.2749, allocations: 7.938 kB / 0.569 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.2749, allocations: 3.984 kB / 0.569 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.665e-06/0.2749, allocations: 0 / 0.569 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.145e-05/0.2749, allocations: 0 / 0.569 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.2749, allocations: 4 kB / 0.569 GB, free: 12.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.81e-05/0.2749, allocations: 87.31 kB / 0.569 GB, free: 12.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2749, allocations: 3.938 kB / 0.5691 GB, free: 12.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.2752, allocations: 47.8 kB / 0.5691 GB, free: 12.61 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.001415/0.2766, allocations: 0.5388 MB / 0.5696 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.482e-05/0.2767, allocations: 59.39 kB / 0.5697 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2767, allocations: 0 / 0.5697 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.338e-05/0.2768, allocations: 59.41 kB / 0.5697 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001116/0.2769, allocations: 0 / 0.5697 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001746/0.2771, allocations: 110.6 kB / 0.5698 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.2774, allocations: 0.6729 MB / 0.5705 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.177e-05/0.2774, allocations: 11.56 kB / 0.5705 GB, free: 11.13 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.2774, allocations: 0 / 0.5705 GB, free: 11.13 MB / 414.1 MB Notification: Performance of Templates: time 0.004303/0.2817, allocations: 2.591 MB / 0.573 GB, free: 8.535 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 7.196935325162485]