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.001471/0.001471, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001058/0.001058, allocations: 159.4 kB / 24.99 MB, free: 8.297 MB / 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 0.9922/0.9922, allocations: 177 MB / 205.2 MB, free: 5.594 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.2995/0.2995, allocations: 34.87 MB / 296.6 MB, free: 0.5625 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 3.236e-06/3.236e-06, allocations: 0 / 378.7 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.522e-05/3.845e-05, allocations: 2.312 kB / 378.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestColorMapToSvg): time 0.001977/0.002016, allocations: 0.5057 MB / 379.2 MB, free: 1.922 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.00416, allocations: 1.138 MB / 380.4 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.211e-05/0.004192, allocations: 0 / 380.4 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.048e-05/0.004213, allocations: 0 / 380.4 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.234e-06/0.00422, allocations: 0 / 380.4 MB, free: 0.7734 MB / 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.002262/0.006482, allocations: 0.7443 MB / 381.1 MB, free: 36 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.305e-05/0.006545, allocations: 3.938 kB / 381.1 MB, free: 32 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.006586, allocations: 0 / 381.1 MB, free: 32 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.156e-05/0.006617, allocations: 7.984 kB / 381.1 MB, free: 24 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.149e-05/0.006639, allocations: 0 / 381.1 MB, free: 24 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.207e-06/0.006648, allocations: 0 / 381.1 MB, free: 24 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003511/0.01016, allocations: 2.459 MB / 383.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.01017, allocations: 3.938 kB / 383.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.0102, allocations: 0 / 383.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005996/0.0108, allocations: 371.3 kB / 383.9 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.0108, allocations: 0 / 383.9 MB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.0108, allocations: 4 kB / 384 MB, free: 13.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.01081, allocations: 7.875 kB / 384 MB, free: 13.19 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.0005018/0.01131, allocations: 405.5 kB / 384.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.01136, allocations: 12.03 kB / 384.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.229e-05/0.01141, allocations: 4 kB / 384.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.667e-05/0.01151, allocations: 108.1 kB / 384.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.01152, allocations: 0 / 384.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.01153, allocations: 0 / 384.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.01166, allocations: 67.38 kB / 384.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.01167, allocations: 0 / 384.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.01168, allocations: 3.938 kB / 384.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.01169, allocations: 0 / 384.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.527e-05/0.01173, allocations: 29.7 kB / 384.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.01187, allocations: 112.6 kB / 384.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.292e-05/0.01196, allocations: 56.73 kB / 384.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.494e-05/0.01199, allocations: 37.38 kB / 384.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.012, allocations: 4.062 kB / 384.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.01205, allocations: 59.09 kB / 384.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.01205, allocations: 0 / 384.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002609/0.01231, allocations: 122.7 kB / 385 MB, free: 12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.01237, allocations: 81.09 kB / 385 MB, free: 11.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.684e-05/0.01244, allocations: 142.2 kB / 385.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.01245, allocations: 33.77 kB / 385.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/0.01249, allocations: 130.9 kB / 385.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.01252, allocations: 352 / 385.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.01256, allocations: 15.38 kB / 385.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.01273, allocations: 496.1 kB / 385.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.941e-05/0.01276, allocations: 29.7 kB / 385.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.178e-05/0.01278, allocations: 25.7 kB / 385.9 MB, free: 10.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.683e-05/0.01286, allocations: 67.08 kB / 386 MB, free: 10.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01287, allocations: 0 / 386 MB, free: 10.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001127/0.01298, allocations: 93 kB / 386 MB, free: 10.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.01302, allocations: 37.8 kB / 386.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.01303, allocations: 0 / 386.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.01304, allocations: 0 / 386.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.02e-06/0.01305, allocations: 7.922 kB / 386.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.01306, allocations: 0 / 386.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.15e-05/0.01308, allocations: 4 kB / 386.1 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.01309, allocations: 0 / 386.1 MB, free: 10.74 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.000109/0.01319, allocations: 182.3 kB / 386.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.01321, allocations: 0 / 386.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.24e-05/0.01322, allocations: 7 kB / 386.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.01322, allocations: 4 kB / 386.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.01323, allocations: 3.938 kB / 386.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01323, allocations: 0 / 386.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.519e-05/0.01332, allocations: 108.6 kB / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.01332, allocations: 0 / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.076e-06/0.01332, allocations: 4 kB / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.01332, allocations: 0 / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.01333, allocations: 0 / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.01333, allocations: 0 / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.01334, allocations: 0 / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.01348, allocations: 135.7 kB / 386.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-06/0.01349, allocations: 8.031 kB / 386.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.01351, allocations: 0 / 386.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.315e-05/0.01352, allocations: 4 kB / 386.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.521e-05/0.01353, allocations: 3.938 kB / 386.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.01354, allocations: 0 / 386.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.451e-05/0.01358, allocations: 131.2 kB / 386.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01358, allocations: 0 / 386.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003938/0.01398, allocations: 51.8 kB / 386.7 MB, free: 10.03 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.001821/0.0158, allocations: 0.5704 MB / 387.3 MB, free: 9.512 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001981/0.01599, allocations: 122.5 kB / 387.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.016, allocations: 0 / 387.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.813e-05/0.01607, allocations: 96.73 kB / 387.5 MB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001733/0.01624, allocations: 12.11 kB / 387.5 MB, free: 9.234 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000392/0.01663, allocations: 117.6 kB / 387.6 MB, free: 9.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.669e-05/0.01669, allocations: 55.34 kB / 387.7 MB, free: 9.008 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.159e-05/0.0167, allocations: 0 / 387.7 MB, free: 9.008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.01673, allocations: 8.5 kB / 387.7 MB, free: 9 MB / 362.7 MB Notification: Performance of SimCode: time 1.633e-06/0.01673, allocations: 0 / 387.7 MB, free: 9 MB / 362.7 MB Notification: Performance of Templates: time 0.007651/0.02438, allocations: 2.207 MB / 389.9 MB, free: 6.793 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.1961582470685244]