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.001477/0.001477, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.00155/0.00155, allocations: 160.5 kB / 24.55 MB, free: 12 kB / 18.57 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.007/1.007, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] 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.2604/0.2604, allocations: 34.87 MB / 296.3 MB, free: 0.5469 MB / 266.7 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 2.164e-06/2.164e-06, allocations: 0 / 378.7 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.008e-05/3.224e-05, allocations: 7.016 kB / 378.7 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.002097/0.002129, allocations: 0.4944 MB / 379.2 MB, free: 1.613 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.004387, allocations: 1.142 MB / 380.4 MB, free: 472 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.63e-05/0.004413, allocations: 3.938 kB / 380.4 MB, free: 468 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.258e-05/0.004436, allocations: 3.938 kB / 380.4 MB, free: 464 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.134e-06/0.004443, allocations: 0 / 380.4 MB, free: 464 kB / 346.7 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.002426/0.006869, allocations: 0.7405 MB / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.593e-05/0.006925, allocations: 0 / 381.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.006965, allocations: 8 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.058e-05/0.006996, allocations: 3.938 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.632e-05/0.007022, allocations: 7.922 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 9.769e-06/0.007032, allocations: 0 / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003085/0.01012, allocations: 2.455 MB / 383.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.828e-06/0.01013, allocations: 0 / 383.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.161e-05/0.01015, allocations: 0 / 383.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003998/0.01055, allocations: 383.2 kB / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.01055, allocations: 4 kB / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.01056, allocations: 0 / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.01056, allocations: 0 / 384 MB, free: 12.87 MB / 362.7 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.0003935/0.01095, allocations: 405.4 kB / 384.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.011, allocations: 12.03 kB / 384.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.01105, allocations: 4 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.894e-05/0.01112, allocations: 108.1 kB / 384.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.01113, allocations: 3.938 kB / 384.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.01115, allocations: 8 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.01126, allocations: 55.39 kB / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.01127, allocations: 0 / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.01128, allocations: 3.938 kB / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.01129, allocations: 4 kB / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.092e-05/0.01131, allocations: 25.7 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.01143, allocations: 108.6 kB / 384.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.144e-05/0.01149, allocations: 64.72 kB / 384.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.727e-05/0.01152, allocations: 33.39 kB / 384.8 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.615e-06/0.01153, allocations: 4.062 kB / 384.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.01157, allocations: 59.09 kB / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.813e-06/0.01158, allocations: 0 / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002644/0.01184, allocations: 122.7 kB / 385 MB, free: 11.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.01189, allocations: 77.11 kB / 385.1 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.566e-05/0.01196, allocations: 146.2 kB / 385.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.01197, allocations: 25.7 kB / 385.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.632e-05/0.01202, allocations: 126.9 kB / 385.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.01204, allocations: 4.469 kB / 385.3 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.01208, allocations: 23.31 kB / 385.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.01224, allocations: 496.1 kB / 385.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.467e-05/0.01228, allocations: 25.7 kB / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.181e-05/0.0123, allocations: 33.62 kB / 385.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.216e-05/0.01236, allocations: 63.09 kB / 386 MB, free: 10.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01236, allocations: 0 / 386 MB, free: 10.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001001/0.01246, allocations: 93.06 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.01251, allocations: 37.69 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.01251, allocations: 4.094 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.01253, allocations: 0 / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.312e-06/0.01254, allocations: 3.938 kB / 386.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.01255, allocations: 3.938 kB / 386.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.788e-05/0.01257, allocations: 0 / 386.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.01258, allocations: 0 / 386.1 MB, free: 10.42 MB / 362.7 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.0001046/0.01268, allocations: 182.3 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.321e-05/0.01269, allocations: 4 kB / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.754e-05/0.01271, allocations: 3 kB / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.01271, allocations: 0 / 386.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.01272, allocations: 7.938 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01272, allocations: 3.984 kB / 386.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.967e-05/0.0128, allocations: 104.6 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.01281, allocations: 4 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.01281, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.01281, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.01282, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.01282, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01282, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.01296, allocations: 135.8 kB / 386.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-06/0.01297, allocations: 7.938 kB / 386.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.01299, allocations: 8.031 kB / 386.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.013, allocations: 0 / 386.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.01302, allocations: 3.938 kB / 386.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.01302, allocations: 4 kB / 386.6 MB, free: 9.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.889e-05/0.01306, allocations: 131.2 kB / 386.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01306, allocations: 0 / 386.7 MB, free: 9.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004041/0.01346, allocations: 47.81 kB / 386.7 MB, free: 9.703 MB / 362.7 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.001628/0.01509, allocations: 0.5669 MB / 387.3 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001649/0.01526, allocations: 122.5 kB / 387.4 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.01526, allocations: 0 / 387.4 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.96e-05/0.01531, allocations: 88.8 kB / 387.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.01547, allocations: 8.109 kB / 387.5 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003294/0.0158, allocations: 129.5 kB / 387.7 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.797e-05/0.01585, allocations: 51.36 kB / 387.7 MB, free: 8.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.516e-06/0.01586, allocations: 0 / 387.7 MB, free: 8.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.764e-05/0.01588, allocations: 8.5 kB / 387.7 MB, free: 8.684 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.01588, allocations: 0 / 387.7 MB, free: 8.684 MB / 362.7 MB Notification: Performance of Templates: time 0.005786/0.02166, allocations: 2.204 MB / 389.9 MB, free: 6.477 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestColorMapToSvg_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestColorMapToSvg/TestColorMapToSvg.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3116343142464757]